diff options
author | Thomas H. P. Andersen <phomes@gmail.com> | 2017-03-07 07:47:18 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@users.noreply.github.com> | 2017-03-07 07:47:18 +0100 |
commit | 557e36934d21b08acafbe2baf6ebfde761fbae25 (patch) | |
tree | fac803594e4fbaf44e1e0d992e716f1f7868b53e /src/cgtop/cgtop.c | |
parent | Merge pull request #5540 from keszybz/coredump-eof-fix (diff) | |
download | systemd-557e36934d21b08acafbe2baf6ebfde761fbae25.tar.xz systemd-557e36934d21b08acafbe2baf6ebfde761fbae25.zip |
cgtop: use PRIu64 to print uint64_t (#5544)
Commit 59f448cf replaced usage of off_t with uint64_t. Change the
format string to use PRIu64 to match it.
Diffstat (limited to '')
-rw-r--r-- | src/cgtop/cgtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a1c0f48c89..67f3a99860 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -118,7 +118,7 @@ static const char *maybe_format_bytes(char *buf, size_t l, bool is_valid, uint64 if (!is_valid) return "-"; if (arg_raw) { - snprintf(buf, l, "%jd", t); + snprintf(buf, l, "%" PRIu64, t); return buf; } return format_bytes(buf, l, t); |