From a76e1eb3c773c5a4caf665fbe21fee52eeb8af25 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Sat, 8 Jun 2019 11:53:01 +0900 Subject: [PATCH] bin/top: Fix -Wformat= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie408017684313531f2dc18d9401cd54bb00a7e12 Reviewed-on: https://review.haiku-os.org/c/1515 Reviewed-by: Jérôme Duval Reviewed-by: waddlesplash --- src/bin/top.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/top.cpp b/src/bin/top.cpp index 3e245dc257..deeb380aa6 100644 --- a/src/bin/top.cpp +++ b/src/bin/top.cpp @@ -229,7 +229,7 @@ compare( } if (!ignore && (!refresh || (linecount < (rows - 1)))) { - printf("%6ld %7.2f %7.2f %7.2f %4.1f %16s %s \n", + printf("%6" B_PRId32 " %7.2f %7.2f %7.2f %4.1f %16s %s \n", it->thid, total / 1000.0, (double)(it->user_time / 1000),