From: xie xingguo Date: Tue, 27 Sep 2016 03:22:10 +0000 (+0800) Subject: os/bluestore: use std namespace for hex/dec output formatting X-Git-Tag: v11.0.1~75^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f6344e337cc14f9dbf891ff7966612dc72c11e2;p=ceph.git os/bluestore: use std namespace for hex/dec output formatting Because we use std::hex/dec everywhere in bluestore except these two places. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 6416f75a30cc..41db61493342 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7275,10 +7275,10 @@ int BlueStore::_do_alloc_write( // pad out to min_alloc_size compressed_bl.append_zero(newlen - rawlen); logger->inc(l_bluestore_write_pad_bytes, newlen - rawlen); - dout(20) << __func__ << hex << " compressed 0x" << wi.blob_length + dout(20) << __func__ << std::hex << " compressed 0x" << wi.blob_length << " -> 0x" << rawlen << " => 0x" << newlen << " with " << (int)chdr.type - << dec << dendl; + << std::dec << dendl; txc->statfs_delta.compressed() += rawlen; txc->statfs_delta.compressed_original() += l->length(); txc->statfs_delta.compressed_allocated() += newlen; @@ -7290,11 +7290,11 @@ int BlueStore::_do_alloc_write( compressed = true; logger->inc(l_bluestore_compress_success_count); } else { - dout(20) << __func__ << hex << " compressed 0x" << l->length() + dout(20) << __func__ << std::hex << " compressed 0x" << l->length() << " -> 0x" << rawlen << " with " << (int)chdr.type << ", which is more than required 0x" << dstlen << ", leaving uncompressed" - << dec << dendl; + << std::dec << dendl; } logger->tinc(l_bluestore_compress_lat, ceph_clock_now(g_ceph_context) - start); }