diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:30:35 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:38:48 -0600 |
commit | 6fc5d416a289235dd4bb56d29fb96c5a003ea89f (patch) | |
tree | e35bb16c46c2ad8d8563b42e12a1e95cbd936dc7 /pkg/btrfsmisc/fsck.go | |
parent | f1a212cddb8dc051c510327c365da42e30b23ab9 (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/btrfsmisc/fsck.go')
-rw-r--r-- | pkg/btrfsmisc/fsck.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/btrfsmisc/fsck.go b/pkg/btrfsmisc/fsck.go index 1334900..2c7085e 100644 --- a/pkg/btrfsmisc/fsck.go +++ b/pkg/btrfsmisc/fsck.go @@ -18,13 +18,13 @@ func ScanForNodes(dev *btrfs.Device, sb btrfs.Superblock, fn func(*util.Ref[btrf } if sb.NodeSize < sb.SectorSize { - return fmt.Errorf("node_size(%d) < sector_size(%d)", + return fmt.Errorf("node_size(%v) < sector_size(%v)", sb.NodeSize, sb.SectorSize) } for pos := btrfs.PhysicalAddr(0); pos+btrfs.PhysicalAddr(sb.NodeSize) < devSize; pos += btrfs.PhysicalAddr(sb.SectorSize) { if util.InSlice(pos, btrfs.SuperblockAddrs) { - //fmt.Printf("sector@%d is a superblock\n", pos) + //fmt.Printf("sector@%v is a superblock\n", pos) continue } |