]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/numops: fix cls_numops.cc log add to mul 23971/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Thu, 6 Sep 2018 23:55:16 +0000 (19:55 -0400)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Fri, 7 Sep 2018 00:23:30 +0000 (20:23 -0400)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/cls/numops/cls_numops.cc

index 760def4a92805e1dc4f9790200259af908cec493..bccfd6d39750945dff86d590e051a77c9e4dc4ed 100644 (file)
@@ -95,7 +95,7 @@ static int mul(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
     decode(key, iter);
     decode(diff_str, iter);
   } catch (const buffer::error &err) {
-    CLS_LOG(20, "add: invalid decode of input");
+    CLS_LOG(20, "mul: invalid decode of input");
     return -EINVAL;
   }
 
@@ -103,7 +103,7 @@ static int mul(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
   double difference = strtod(diff_str.c_str(), &end_ptr);
 
   if (end_ptr && *end_ptr != '\0') {
-    CLS_ERR("add: invalid input value: %s", diff_str.c_str());
+    CLS_ERR("mul: invalid input value: %s", diff_str.c_str());
     return -EINVAL;
   }
 
@@ -116,7 +116,7 @@ static int mul(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
     value = 0;
   } else if (ret < 0) {
     if (ret != -ENOENT) {
-      CLS_ERR("add: error reading omap key %s: %d", key.c_str(), ret);
+      CLS_ERR("mul: error reading omap key %s: %d", key.c_str(), ret);
     }
     return ret;
   } else {
@@ -125,7 +125,7 @@ static int mul(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
     value = strtod(stored_value.c_str(), &end_ptr);
 
     if (end_ptr && *end_ptr != '\0') {
-      CLS_ERR("add: invalid stored value: %s", stored_value.c_str());
+      CLS_ERR("mul: invalid stored value: %s", stored_value.c_str());
       return -EBADMSG;
     }
   }