From: Sage Weil Date: Sun, 31 Aug 2014 04:56:31 +0000 (-0700) Subject: common/LogEntry: fix warning on i386 X-Git-Tag: v0.86~163 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a24c8bac2b368c070384732c49b13562a60ed296;p=ceph.git 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 --- diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index 37c2a3a51f50..53acf0f7e4ee 100644 --- a/src/common/LogEntry.cc +++ b/src/common/LogEntry.cc @@ -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());