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/btrfs/internal/objid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/btrfs/internal') diff --git a/pkg/btrfs/internal/objid.go b/pkg/btrfs/internal/objid.go index a53d61f..b3f09f6 100644 --- a/pkg/btrfs/internal/objid.go +++ b/pkg/btrfs/internal/objid.go @@ -68,7 +68,7 @@ func (id ObjID) Format(typ ItemType) string { uint64(id)>>48, uint64(id)&((1<<48)-1)) case UUID_SUBVOL_KEY, UUID_RECEIVED_SUBVOL_KEY: - return fmt.Sprintf("0x%016x", uint64(id)) + return fmt.Sprintf("%#016x", uint64(id)) case DEV_ITEM_KEY: names := map[ObjID]string{ BALANCE_OBJECTID: "BALANCE", -- cgit v1.2.3-2-g168b