Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419983 > unrolled thread

[PATCH 1/1] perf tools: use correct format specifier

Started byHeinrich Schuchardt <xypron.glpk@gmx.de>
First post2016-06-11 17:20 +0200
Last post2016-06-11 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/1] perf tools: use correct format specifier Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-06-11 17:20 +0200

#1419983 — [PATCH 1/1] perf tools: use correct format specifier

FromHeinrich Schuchardt <xypron.glpk@gmx.de>
Date2016-06-11 17:20 +0200
Subject[PATCH 1/1] perf tools: use correct format specifier
Message-ID<rISRz-4HN-1@gated-at.bofh.it>
waking is defined as unsigned long. So use %lu for printing.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 tools/perf/builtin-record.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index d4cf1b0..4a470646 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -917,7 +917,8 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
 			trigger_ready(&switch_output_trigger);
 
 			if (!quiet)
-				fprintf(stderr, "[ perf record: dump data: Woken up %ld times ]\n",
+				fprintf(stderr,
+					"[ perf record: dump data: Woken up %lu times ]\n",
 					waking);
 			waking = 0;
 			fd = record__switch_output(rec, false);
@@ -968,7 +969,9 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
 	}
 
 	if (!quiet)
-		fprintf(stderr, "[ perf record: Woken up %ld times to write data ]\n", waking);
+		fprintf(stderr,
+			"[ perf record: Woken up %lu times to write data ]\n",
+			waking);
 
 out_child:
 	if (forks) {
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web