Skip to content

Commit 66a301c

Browse files
committed
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>
1 parent d1e95bb commit 66a301c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tools/perf/util/probe-finder.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,8 @@ static int line_range_search_cb(Dwarf_Die *sp_die, void *data)
17311731
struct line_finder *lf = param->data;
17321732
struct line_range *lr = lf->lr;
17331733

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),
17351736
dwarf_diename(sp_die));
17361737
if (dwarf_tag(sp_die) == DW_TAG_subprogram &&
17371738
die_compare_name(sp_die, lr->function)) {

0 commit comments

Comments
 (0)