Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Fix dwarf-aux.c compilation on i386

Replacing %lu format strings for Dwarf_Addr type with PRIu64 as it fits
for Dwarf_Addr (defined as uint64_t) type and works also on both 32/64
bits.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1431706991-15646-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
c1b9034d f812d304

+4 -4
+4 -4
tools/perf/util/dwarf-aux.c
··· 994 994 end -= entry; 995 995 996 996 if (first) { 997 - strbuf_addf(buf, "@<%s+[%lu-%lu", 997 + strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64, 998 998 name, start, end); 999 999 first = false; 1000 1000 } else { 1001 - strbuf_addf(buf, ",%lu-%lu", 1001 + strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64, 1002 1002 start, end); 1003 1003 } 1004 1004 } ··· 1057 1057 start -= entry; 1058 1058 end -= entry; 1059 1059 if (first) { 1060 - strbuf_addf(buf, "@<%s+[%lu-%lu", 1060 + strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64, 1061 1061 name, start, end); 1062 1062 first = false; 1063 1063 } else { 1064 - strbuf_addf(buf, ",%lu-%lu", 1064 + strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64, 1065 1065 start, end); 1066 1066 } 1067 1067 }