* [PATCH 1/1] perf tools: use correct format specifier
@ 2016-06-11 15:18 Heinrich Schuchardt
0 siblings, 0 replies; only message in thread
From: Heinrich Schuchardt @ 2016-06-11 15:18 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo
Cc: Alexander Shishkin, linux-kernel, Heinrich Schuchardt
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-11 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-11 15:18 [PATCH 1/1] perf tools: use correct format specifier Heinrich Schuchardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).