Skip to content

Commit 1b2550d

Browse files
committed
Fix wrong value type used to build error
Signed-off-by: nghialv <[email protected]>
1 parent 964d3a7 commit 1b2550d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/guestagent/procnettcp/procnettcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func ParseAddress(s string) (net.IP, uint16, error) {
112112
case 8, 32:
113113
default:
114114
return nil, 0, errors.Errorf("unparsable address %q, expected length of %q to be 8 or 32, got %d",
115-
s, len(split[0]), l)
115+
s, split[0], l)
116116
}
117117

118118
ipBytes := make([]byte, len(split[0])/2) // 4 bytes (8 chars) or 16 bytes (32 chars)

0 commit comments

Comments
 (0)