From: yuliyang Date: Thu, 6 Sep 2018 23:55:16 +0000 (-0400) Subject: cls/numops: fix cls_numops.cc log add to mul X-Git-Tag: v14.0.1~360^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7374f396c11b460baa9e25a7b6ecec3f73b9068a;p=ceph.git cls/numops: fix cls_numops.cc log add to mul Signed-off-by: yuliyang --- diff --git a/src/cls/numops/cls_numops.cc b/src/cls/numops/cls_numops.cc index 760def4a9280..bccfd6d39750 100644 --- a/src/cls/numops/cls_numops.cc +++ b/src/cls/numops/cls_numops.cc @@ -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; } }