mgr: Use signed int log level in PyModules::log()

Using an unsigned causes a build failure when expanding the dout macro.

Signed-off-by: Tim Serong <tserong@suse.com>
This commit is contained in:
Tim Serong 2016-07-26 16:43:44 +10:00 committed by John Spray
parent 96e10e9328
commit 054708a6f0
2 changed files with 2 additions and 2 deletions

View 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 << "] "

View 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