mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
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.
This commit is contained in:
parent
81687ee338
commit
557e36934d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user