diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-15 23:26:54 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-15 23:26:54 -0600 |
commit | 4b4d3fe609ecb99cf43aa4a70787bfa2113e6018 (patch) | |
tree | e8bae60b5a3d717657aa829f3d684715b0334aa7 /pkg/btrfsmisc | |
parent | 8565a4c162d23d0032944fc41772e7af41fa6a08 (diff) |
dump-tree: Sync up to 5.18.1; implement csum types
Diffstat (limited to 'pkg/btrfsmisc')
-rw-r--r-- | pkg/btrfsmisc/print_tree.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/btrfsmisc/print_tree.go b/pkg/btrfsmisc/print_tree.go index fa864a5..580a0ca 100644 --- a/pkg/btrfsmisc/print_tree.go +++ b/pkg/btrfsmisc/print_tree.go @@ -273,11 +273,11 @@ func printHeaderInfo(node btrfs.Node) { node.Head.Flags, node.Head.BackrefRev) - fmt.Printf("checksum stored %v\n", node.Head.Checksum) + fmt.Printf("checksum stored %v\n", node.Head.Checksum.Fmt(node.ChecksumType)) if calcSum, err := node.CalculateChecksum(); err != nil { fmt.Printf("checksum calced %v\n", err) } else { - fmt.Printf("checksum calced %v\n", calcSum) + fmt.Printf("checksum calced %v\n", calcSum.Fmt(node.ChecksumType)) } fmt.Printf("fs uuid %v\n", node.Head.MetadataUUID) |