]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/LogEntry: fix warning on i386
authorSage Weil <sage@redhat.com>
Sun, 31 Aug 2014 04:56:31 +0000 (21:56 -0700)
committerSage Weil <sage@redhat.com>
Sun, 31 Aug 2014 04:56:31 +0000 (21:56 -0700)
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>
src/common/LogEntry.cc

index 37c2a3a51f50786bf629a88e499cce69b2e44813..53acf0f7e4ee75df5f398504c6d698e13a1b357a 100644 (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());