Skip to content

Commit dae125c

Browse files
committed
bpf2go: use fmt.Sprint()
Signed-off-by: shun159 <dreamdiagnosis@gmail.com>
1 parent fbafa18 commit dae125c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/bpf2go/gen/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func generateStructOpsShadowType(goTypeName string, st *btf.Struct, gf *btf.GoFo
124124

125125
sb.WriteString(fmt.Sprintf("// %s is a struct type for the struct_ops map.\n", goTypeName))
126126
sb.WriteString(fmt.Sprintf("type %s struct {\n", goTypeName))
127-
sb.WriteString(fmt.Sprintf("\t_ structs.HostLayout\n"))
127+
sb.WriteString(fmt.Sprint("\t_ structs.HostLayout\n"))
128128

129129
prevOffset := uint32(0)
130130
for _, m := range st.Members {

0 commit comments

Comments
 (0)