From 7913222c9e896d1f567899703cf1796999f2d266 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 15 Dec 2016 22:24:06 +0900 Subject: [PATCH] mfile: output data with correct format --- storage/mfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/mfile.go b/storage/mfile.go index f968039..05a734d 100644 --- a/storage/mfile.go +++ b/storage/mfile.go @@ -243,7 +243,7 @@ func (m *mfileBlock) WriteBlock(_ context.Context, s torus.BlockRef, data []byte olddata := m.dataFile.GetBlock(uint64(v)) if !bytes.Equal(olddata, data) { clog.Error("getting wrong data for block: ", s) - clog.Errorf("%s, %s", olddata[:10], data[:10]) + clog.Errorf("old: %v, new: %v", olddata[:10], data[:10]) return torus.ErrExists } // Not an error, if we already have it