]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: end scope of hex of dout properly
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 20 Jun 2016 01:28:34 +0000 (09:28 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 20 Jun 2016 01:34:27 +0000 (09:34 +0800)
Otherwise it will affect the subsequent outputs also,
which is not the expected behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/client/Client.cc

index 0c3b7a614379d5ad8dfeb41ae8de22d538753dfe..a6d5d383ab2266a2b2dafcefeab593d041e8970b 100644 (file)
@@ -7043,7 +7043,7 @@ int Client::_readdir_get_frag(dir_result_t *dirp)
     fg = frag_t(dirp->offset_high());
   
   ldout(cct, 10) << "_readdir_get_frag " << dirp << " on " << dirp->inode->ino << " fg " << fg
-                << " offset " << hex << dirp->offset << dendl;
+                << " offset " << hex << dirp->offset << dec << dendl;
 
   int op = CEPH_MDS_OP_READDIR;
   if (dirp->inode && dirp->inode->snapid == CEPH_SNAPDIR)
@@ -7226,7 +7226,7 @@ int Client::readdir_r_cb(dir_result_t *d, add_dirent_cb_t cb, void *p)
   }
 
   // can we read from our cache?
-  ldout(cct, 10) << "offset " << hex << dirp->offset
+  ldout(cct, 10) << "offset " << hex << dirp->offset << dec
           << " snapid " << dirp->inode->snapid << " (complete && ordered) "
           << dirp->inode->is_complete_and_ordered()
           << " issued " << ccap_string(dirp->inode->caps_issued())