aboutsummaryrefslogtreecommitdiff
path: root/src/dedo.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/dedo.go')
-rw-r--r--src/dedo.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dedo.go b/src/dedo.go
index 47d08ca..dcc4956 100644
--- a/src/dedo.go
+++ b/src/dedo.go
@@ -3334,9 +3334,9 @@ func (p *page) branchPageElements() []branchPageElement {
}
// dump writes n bytes of the page to STDERR as hex output.
-func (p *page) hexdump(n int) {
+func (p *page) hexdump(n int) string {
buf := (*[maxAllocSize]byte)(unsafe.Pointer(p))[:n]
- fmt.Fprintf(os.Stderr, "%x\n", buf)
+ return fmt.Sprintf("%x\n", buf)
}
type pages []*page
@@ -4373,7 +4373,9 @@ func (cmd *InfoCommand) Run(args ...string) error {
// Print basic database info.
info := db.Info()
- fmt.Fprintf(cmd.Stdout, "Page Size: %d\n", info.PageSize)
+ // FIXME
+ fmt.Sprintf("Page Size: %d\n", info.PageSize)
+
return nil
}