[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-e2eae0f5605b90a0838608043c21050b08b6dd95@git.kernel.org>
Date: Mon, 15 Jun 2009 14:21:55 GMT
From: tip-bot for Ingo Molnar <mingo@...e.hu>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, acme@...hat.com, paulus@...ba.org,
hpa@...or.com, mingo@...hat.com, a.p.zijlstra@...llo.nl,
efault@....de, yong.y.wang@...ux.intel.com, tglx@...utronix.de,
mingo@...e.hu
Subject: [tip:perfcounters/core] perf report: Fix 32-bit printf format
Commit-ID: e2eae0f5605b90a0838608043c21050b08b6dd95
Gitweb: http://git.kernel.org/tip/e2eae0f5605b90a0838608043c21050b08b6dd95
Author: Ingo Molnar <mingo@...e.hu>
AuthorDate: Mon, 15 Jun 2009 16:15:19 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Mon, 15 Jun 2009 16:18:02 +0200
perf report: Fix 32-bit printf format
Yong Wang reported the following compiler warning:
builtin-report.c: In function 'process_overflow_event':
builtin-report.c:984: error: cast to pointer from integer of different size
Which happens because we try to print ->ips[] out with a limited
format, losing the high 32 bits. Print it out using %016Lx instead.
Reported-by: Yong Wang <yong.y.wang@...ux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Mike Galbraith <efault@....de>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
tools/perf/builtin-report.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 1e2f5dd..f86bb07 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -982,7 +982,7 @@ process_overflow_event(event_t *event, unsigned long offset, unsigned long head)
chain->nr);
for (i = 0; i < chain->nr; i++)
- dprintf("..... %2d: %p\n", i, (void *)chain->ips[i]);
+ dprintf("..... %2d: %016Lx\n", i, chain->ips[i]);
}
if (collapse_syscalls) {
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists