mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
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:
parent
bb26c66b82
commit
a24c8bac2b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user