]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Use signed int log level in PyModules::log()
authorTim Serong <tserong@suse.com>
Tue, 26 Jul 2016 06:43:44 +0000 (16:43 +1000)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:26:59 +0000 (17:26 +0100)
Using an unsigned causes a build failure when expanding the dout macro.

Signed-off-by: Tim Serong <tserong@suse.com>
src/mgr/PyModules.cc
src/mgr/PyModules.h

index e20940c54a81597e55f56387fecbc86a5d4a9f11..da346dcbc3be3d3777d9d8edd61c40557e3cf6da 100644 (file)
@@ -446,7 +446,7 @@ void PyModules::insert_config(const std::map<std::string,
 }
 
 void PyModules::log(const std::string &handle,
-    unsigned level, const std::string &record)
+    int level, const std::string &record)
 {
 #undef dout_prefix
 #define dout_prefix *_dout << "mgr[" << handle << "] "
index 31c391888e3512341b44fa36496c79508e36b219..3bca52b6a2a9280e45eb9f7867d50030e9c6e760 100644 (file)
@@ -83,7 +83,7 @@ public:
       const std::string &key, const std::string &val);
 
   void log(const std::string &handle,
-           unsigned level, const std::string &record);
+           int level, const std::string &record);
 };
 
 #endif