|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From 16037d22ebb2682dc948e6a1fc869635d0c949e3 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From: "Thomas H. P. Andersen" <phomes@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Date: Tue, 7 Mar 2017 07:47:18 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Subject: [PATCH] cgtop: use PRIu64 to print uint64_t (#5544)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Commit 59f448cf replaced usage of off_t with uint64_t. Change the
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
format string to use PRIu64 to match it.
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
(cherry picked from commit 557e36934d21b08acafbe2baf6ebfde761fbae25)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
src/cgtop/cgtop.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
index a1c0f48c89..67f3a99860 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--- a/src/cgtop/cgtop.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+++ b/src/cgtop/cgtop.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
@@ -118,7 +118,7 @@ static const char *maybe_format_bytes(char *buf, size_t l, bool is_valid, uint64
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (!is_valid)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
return "-";
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (arg_raw) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
- snprintf(buf, l, "%jd", t);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+ snprintf(buf, l, "%" PRIu64, t);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
return buf;
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
}
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
return format_bytes(buf, l, t);
|