summaryrefslogtreecommitdiff
path: root/pkg/btrfs/internal
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-11 22:30:35 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-11 22:38:48 -0600
commit6fc5d416a289235dd4bb56d29fb96c5a003ea89f (patch)
treee35bb16c46c2ad8d8563b42e12a1e95cbd936dc7 /pkg/btrfs/internal
parentf1a212cddb8dc051c510327c365da42e30b23ab9 (diff)
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
Diffstat (limited to 'pkg/btrfs/internal')
-rw-r--r--pkg/btrfs/internal/objid.go2
1 files changed, 1 insertions, 1 deletions
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",