]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgtop: use PRIu64 to print uint64_t (#5544)
authorThomas H. P. Andersen <phomes@gmail.com>
Tue, 7 Mar 2017 06:47:18 +0000 (07:47 +0100)
committerMartin 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

index a1c0f48c8906c69aee2ae9182816376b027bc8d9..67f3a99860c9d6ae15ec04977db09afc7dd65257 100644 (file)
@@ -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);