]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/log: using standard macros instead of -1
authorhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 20 May 2016 08:41:39 +0000 (16:41 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 20 May 2016 08:41:39 +0000 (16:41 +0800)
using standard macros instead of -1

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/LogMonitor.cc

index f57c830e51f8756e84c9fa93339434fe96e3ba52..567ff2b68d301fa65beb8a23ed2d9806336d9b9e 100644 (file)
@@ -435,7 +435,7 @@ int LogMonitor::sub_name_to_id(const string& n)
     return CLOG_WARN;
   if (n == "log-error")
     return CLOG_ERROR;
-  return -1;
+  return CLOG_UNKNOWN;
 }
 
 void LogMonitor::check_subs()