]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use hexdump when logging CRC values
authorMykola Golub <mgolub@mirantis.com>
Fri, 4 Dec 2015 18:58:34 +0000 (20:58 +0200)
committerMykola Golub <mgolub@mirantis.com>
Mon, 7 Dec 2015 18:41:16 +0000 (20:41 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/osd/ReplicatedBackend.cc

index 8e7b757f29e699a3399e35e44001f5781410b122..6d33c01b94829c6420e793b7999d8b5595da3e12 100644 (file)
@@ -818,8 +818,9 @@ void ReplicatedBackend::be_deep_scrub(
     }
     ++keys_scanned;
 
-    dout(25) << "CRC key " << iter->key() << " value "
-            << string(iter->value().c_str(), iter->value().length()) << dendl;
+    dout(25) << "CRC key " << iter->key() << " value:\n";
+    iter->value().hexdump(*_dout);
+    *_dout << dendl;
 
     ::encode(iter->key(), bl);
     ::encode(iter->value(), bl);