perf trace: Fix build on 32-bit systems
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 4414a3c51028aea2ae2fe06c0377490eaa6abbfd Gitweb: http://git.kernel.org/tip/4414a3c51028aea2ae2fe06c0377490eaa6abbfd Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 8 Jul 2014 15:39:21 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 8 Jul 2014 15:39:21 -0300
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
--- tools/perf/builtin-trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/builtin-trace.c +3 -3
@@ -1788,12 +1788,12 @@ static void print_location(FILE *f, struct perf_sample *sample,fprintf (f,"%s@" , al->map->dso->long_name);if ((verbose || print_sym) && al->sym) -fprintf (f,"%s+0x%lx" , al->sym->name, +fprintf (f,"%s+0x%" PRIx64, al->sym->name, al->addr - al->sym->start);else if (al->map) -fprintf (f,"0x%lx" , al->addr); +fprintf (f,"0x%" PRIx64, al->addr);else -fprintf (f,"0x%lx" , sample->addr); +fprintf (f,"0x%" PRIx64, sample->addr); } static int trace__pgfault(struct trace *trace,