projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81687ee
)
cgtop: use PRIu64 to print uint64_t (#5544)
author
Thomas H. P. Andersen
<phomes@gmail.com>
Tue, 7 Mar 2017 06:47:18 +0000
(07:47 +0100)
committer
Martin Pitt
<martinpitt@users.noreply.github.com>
Tue, 7 Mar 2017 06:47:18 +0000
(07:47 +0100)
Commit
59f448cf
replaced usage of off_t with uint64_t. Change the
format string to use PRIu64 to match it.
src/cgtop/cgtop.c
patch
|
blob
|
history
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index a1c0f48c8906c69aee2ae9182816376b027bc8d9..67f3a99860c9d6ae15ec04977db09afc7dd65257 100644
(file)
--- 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);