diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-10-23 13:12:29 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-10-23 13:31:20 -0400 |
commit | 66a301c380d4e463424db572b348de4913ec191a (patch) | |
tree | 340bb61033d29b54c81920fbc11c997b06a6911b | |
parent | d1e95bb5309f98368dd4fbef6ff3a8f573b24506 (diff) |
perf probe: Fix format specified for Dwarf_Off parameter
Fixing the following error on 32-bit arches:
util/probe-finder.c: In function ‘line_range_search_cb’:
util/probe-finder.c:1734: error: format ‘%lx’ expects type ‘long
unsigned int’, but argument 3 has type ‘Dwarf_Off’
Reported-by: Ingo Molnar <mingo@elte.hu>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/probe-finder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index c20bd52833a..3991d73d1cf 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -1731,7 +1731,8 @@ static int line_range_search_cb(Dwarf_Die *sp_die, void *data) | |||
1731 | struct line_finder *lf = param->data; | 1731 | struct line_finder *lf = param->data; |
1732 | struct line_range *lr = lf->lr; | 1732 | struct line_range *lr = lf->lr; |
1733 | 1733 | ||
1734 | pr_debug("find (%lx) %s\n", dwarf_dieoffset(sp_die), | 1734 | pr_debug("find (%llx) %s\n", |
1735 | (unsigned long long)dwarf_dieoffset(sp_die), | ||
1735 | dwarf_diename(sp_die)); | 1736 | dwarf_diename(sp_die)); |
1736 | if (dwarf_tag(sp_die) == DW_TAG_subprogram && | 1737 | if (dwarf_tag(sp_die) == DW_TAG_subprogram && |
1737 | die_compare_name(sp_die, lr->function)) { | 1738 | die_compare_name(sp_die, lr->function)) { |