common/LogEntry: fix warning on i386

common/LogEntry.cc: In member function 'void LogEntry::log_to_syslog(std::string, std::string)':
warning: common/LogEntry.cc:161:20: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
msg.c_str());
^

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2014-08-30 21:56:31 -07:00
parent bb26c66b82
commit a24c8bac2b

View File

@ -155,7 +155,7 @@ void LogEntry::log_to_syslog(string level, string facility)
int l = clog_type_to_syslog_level(prio);
if (l <= min) {
int f = string_to_syslog_facility(facility);
syslog(l | f, "%s %lu : %s",
syslog(l | f, "%s %llu : %s",
stringify(who).c_str(),
seq,
msg.c_str());