diff options
-rw-r--r-- | cmd/bolt/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index a132ec0..29e393f 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -542,9 +542,9 @@ func (cmd *PageCommand) PrintLeaf(w io.Writer, buf []byte) error { b := (*bucket)(unsafe.Pointer(&e.value()[0])) v = fmt.Sprintf("<pgid=%d,seq=%d>", b.root, b.sequence) } else if isPrintable(string(e.value())) { - k = fmt.Sprintf("%q", string(e.value())) + v = fmt.Sprintf("%q", string(e.value())) } else { - k = fmt.Sprintf("%x", string(e.value())) + v = fmt.Sprintf("%x", string(e.value())) } fmt.Fprintf(w, "%s: %s\n", k, v) |