diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-03-12 22:05:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 22:05:04 +0100 |
commit | d8ecba43c97b03cd84497ac9d6cd8a803540ed16 (patch) | |
tree | 0814354b36ac2745ff8e3cfa608fc0068ffd9bd6 /logd/src | |
parent | fda1590f87993c3c7c306dcb5cb165504c7b3aa9 (diff) | |
parent | 95a2f491698066e6f83835e163f31042865a59b3 (diff) |
Merge pull request #8765 from vespa-engine/toregge/fix-format-strings-3
Fix format strings in persistence, logd and juniper module.
Diffstat (limited to 'logd/src')
-rw-r--r-- | logd/src/logd/watch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logd/src/logd/watch.cpp b/logd/src/logd/watch.cpp index ec27e0ad0e1..fc1937e5693 100644 --- a/logd/src/logd/watch.cpp +++ b/logd/src/logd/watch.cpp @@ -271,8 +271,8 @@ Watcher::watchfile() if (rotTime > 59 || (sb.st_size == offset && rotTime > 4)) { removeOldLogs(filename); if (sb.st_size != offset) { - LOG(warning, "logfile rotation incomplete after %d s (dropping %lu bytes)", - rotTime, sb.st_size - offset); + LOG(warning, "logfile rotation incomplete after %d s (dropping %" PRIu64 " bytes)", + rotTime, static_cast<uint64_t>(sb.st_size - offset)); } else { LOG(debug, "logfile rotation complete after %d s", rotTime); } @@ -399,7 +399,7 @@ Watcher::removeOldLogs(const char *prefix) totalsize += sb.st_size; if (totalsize > (_confsubscriber.getRemoveMegabytes() * 1048576LL)) { - LOG(info, "removing %s, total size (%ld) too big", fname, static_cast<int64_t>(totalsize)); + LOG(info, "removing %s, total size (%" PRId64 ") too big", fname, static_cast<int64_t>(totalsize)); if (unlink(fname) != 0) { LOG(warning, "cannot remove %s: %s", fname, strerror(errno)); } |