]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RBD: fix unmatched output format 7165/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 9 Jan 2016 08:09:48 +0000 (16:09 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 9 Jan 2016 08:09:48 +0000 (16:09 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/cls/rbd/cls_rbd.cc

index 025e8f329def25488c9e83c57ccaa16e9123a34b..8b88c5eaeda40f80f7d6dc938a05065687f6e1fa 100644 (file)
@@ -2801,7 +2801,7 @@ int old_snapshot_remove(cls_method_context_t hctx, bufferlist *in, bufferlist *o
   if (header->snap_count) {
     int snaps_len = 0;
     int names_len = 0;
-    CLS_LOG(20, "i=%d\n", i);
+    CLS_LOG(20, "i=%u\n", i);
     if (i > 0) {
       snaps_len = sizeof(header->snaps[0]) * i;
       names_len =  snap_names - orig_names;
@@ -2898,7 +2898,7 @@ int old_snapshot_rename(cls_method_context_t hctx, bufferlist *in, bufferlist *o
 
   if (header->snap_count) {
     int names_len = 0;
-    CLS_LOG(20, "i=%d\n", i);
+    CLS_LOG(20, "i=%u\n", i);
     if (i > 0) {
       names_len =  snap_names - orig_names;
       memcpy(new_names_bp.c_str(), orig_names, names_len);