diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-08 14:39:21 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-08 14:39:21 -0400 |
commit | 4414a3c51028aea2ae2fe06c0377490eaa6abbfd (patch) | |
tree | 1b8a20e1d89f3df93a483e2c2842d54ce1cb5d89 /tools | |
parent | a2ea67d7b5618c868c1fe15a50af71b858d36887 (diff) |
perf trace: Fix build on 32-bit systems
CC /tmp/build/perf/builtin-trace.o
builtin-trace.c: In function 'print_location':
builtin-trace.c:1792:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'u64' [-Werror=format]
builtin-trace.c:1794:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u64' [-Werror=format]
builtin-trace.c:1796:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u64' [-Werror=format]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/build/perf/builtin-trace.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install-bin] Error 2
make: Leaving directory `/home/acme/git/linux/tools/perf'
acme@linux-goap:~/git/linux> uname -a
Linux linux-goap 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) i686 i686 i386 GNU/Linux
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stanislav Fomichev <stfomichev@yandex-team.ru>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-843p3aqbw531eqiu2hah8o9p@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index b94dffc5fa85..c4a5a7d7b2cf 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -1788,12 +1788,12 @@ static void print_location(FILE *f, struct perf_sample *sample, | |||
1788 | fprintf(f, "%s@", al->map->dso->long_name); | 1788 | fprintf(f, "%s@", al->map->dso->long_name); |
1789 | 1789 | ||
1790 | if ((verbose || print_sym) && al->sym) | 1790 | if ((verbose || print_sym) && al->sym) |
1791 | fprintf(f, "%s+0x%lx", al->sym->name, | 1791 | fprintf(f, "%s+0x%" PRIx64, al->sym->name, |
1792 | al->addr - al->sym->start); | 1792 | al->addr - al->sym->start); |
1793 | else if (al->map) | 1793 | else if (al->map) |
1794 | fprintf(f, "0x%lx", al->addr); | 1794 | fprintf(f, "0x%" PRIx64, al->addr); |
1795 | else | 1795 | else |
1796 | fprintf(f, "0x%lx", sample->addr); | 1796 | fprintf(f, "0x%" PRIx64, sample->addr); |
1797 | } | 1797 | } |
1798 | 1798 | ||
1799 | static int trace__pgfault(struct trace *trace, | 1799 | static int trace__pgfault(struct trace *trace, |