From: xie xingguo Date: Thu, 22 Jun 2017 03:29:49 +0000 (+0800) Subject: os/bluestore: add "0x" prefix for hex outputs X-Git-Tag: v12.1.2~1^2~53^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=041296bdb165e54a71ba95047f2318802c5c34e1;p=ceph.git os/bluestore: add "0x" prefix for hex outputs Which is the normal case. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ad58ef7a668b..b13605844179 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -9458,8 +9458,8 @@ void BlueStore::_do_write_small( _pad_zeros(&bl, &b_off0, chunk_size); dout(20) << __func__ << " reuse blob " << *b << std::hex - << " (" << b_off0 << "~" << bl.length() << ")" - << " (" << b_off << "~" << length << ")" + << " (0x" << b_off0 << "~" << bl.length() << ")" + << " (0x" << b_off << "~" << length << ")" << std::dec << dendl; o->extent_map.punch_hole(c, offset, length, &wctx->old_extents); @@ -9503,8 +9503,8 @@ void BlueStore::_do_write_small( _pad_zeros(&bl, &b_off0, chunk_size); dout(20) << __func__ << " reuse blob " << *b << std::hex - << " (" << b_off0 << "~" << bl.length() << ")" - << " (" << b_off << "~" << length << ")" + << " (0x" << b_off0 << "~" << bl.length() << ")" + << " (0x" << b_off << "~" << length << ")" << std::dec << dendl; o->extent_map.punch_hole(c, offset, length, &wctx->old_extents); @@ -9586,7 +9586,7 @@ void BlueStore::_do_write_big( b_off = offset - ep->blob_start(); prev_ep = end; // to avoid check below dout(20) << __func__ << " reuse blob " << *b << std::hex - << " (" << b_off << "~" << l << ")" << std::dec << dendl; + << " (0x" << b_off << "~" << l << ")" << std::dec << dendl; } else { ++ep; any_change = true; @@ -9600,7 +9600,7 @@ void BlueStore::_do_write_big( b = prev_ep->blob; b_off = offset - prev_ep->blob_start(); dout(20) << __func__ << " reuse blob " << *b << std::hex - << " (" << b_off << "~" << l << ")" << std::dec << dendl; + << " (0x" << b_off << "~" << l << ")" << std::dec << dendl; } else if (prev_ep != begin) { --prev_ep; any_change = true;