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>
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());