From 6fc5d416a289235dd4bb56d29fb96c5a003ea89f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Jun 2022 22:30:35 -0600 Subject: use %v when possible Exceptions are - the occasional %x when the type is a basic int - %w - %q - %T - whenever print_tree.go needs to be dumb for compatibility with C --- pkg/util/bitfield.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/util/bitfield.go') diff --git a/pkg/util/bitfield.go b/pkg/util/bitfield.go index 216837d..23da17a 100644 --- a/pkg/util/bitfield.go +++ b/pkg/util/bitfield.go @@ -36,7 +36,7 @@ func BitfieldString[T ~uint8 | ~uint16 | ~uint32 | ~uint64](bitfield T, bitnames if i < len(bitnames) { out.WriteString(bitnames[i]) } else { - fmt.Fprintf(&out, "(1<<%d)", i) + fmt.Fprintf(&out, "(1<<%v)", i) } first = false } -- cgit v1.2.3-2-g168b