gitee.com/mirrors_u-root/u-root@v7.0.0+incompatible/pkg/namespace/syzcall_string.go (about) 1 // Code generated by "stringer -type syzcall"; DO NOT EDIT. 2 3 package namespace 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[BIND-2] 12 _ = x[CHDIR-3] 13 _ = x[UNMOUNT-35] 14 _ = x[MOUNT-46] 15 _ = x[RFORK-19] 16 _ = x[IMPORT-7] 17 _ = x[INCLUDE-14] 18 } 19 20 const ( 21 _syzcall_name_0 = "BINDCHDIR" 22 _syzcall_name_1 = "IMPORT" 23 _syzcall_name_2 = "INCLUDE" 24 _syzcall_name_3 = "RFORK" 25 _syzcall_name_4 = "UNMOUNT" 26 _syzcall_name_5 = "MOUNT" 27 ) 28 29 var ( 30 _syzcall_index_0 = [...]uint8{0, 4, 9} 31 ) 32 33 func (i syzcall) String() string { 34 switch { 35 case 2 <= i && i <= 3: 36 i -= 2 37 return _syzcall_name_0[_syzcall_index_0[i]:_syzcall_index_0[i+1]] 38 case i == 7: 39 return _syzcall_name_1 40 case i == 14: 41 return _syzcall_name_2 42 case i == 19: 43 return _syzcall_name_3 44 case i == 35: 45 return _syzcall_name_4 46 case i == 46: 47 return _syzcall_name_5 48 default: 49 return "syzcall(" + strconv.FormatInt(int64(i), 10) + ")" 50 } 51 }