From 7374f396c11b460baa9e25a7b6ecec3f73b9068a Mon Sep 17 00:00:00 2001 From: yuliyang Date: Thu, 6 Sep 2018 19:55:16 -0400 Subject: [PATCH] cls/numops: fix cls_numops.cc log add to mul Signed-off-by: yuliyang --- src/cls/numops/cls_numops.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cls/numops/cls_numops.cc b/src/cls/numops/cls_numops.cc index 760def4a92805..bccfd6d397509 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; } } -- 2.39.5