perf_counter tools: fix build warning in kerneltop.c
authorIngo Molnar <mingo@elte.hu>
Mon, 23 Mar 2009 21:23:16 +0000 (22:23 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Apr 2009 07:30:29 +0000 (09:30 +0200)
Fix:

 kerneltop.c: In function ‘record_ip’:
 kerneltop.c:1005: warning: format ‘%016llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’

Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Orig-LKML-Reference: <20090323172417.677932499@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/kerneltop.c

index 25e80bc..8f9a303 100644 (file)
@@ -1002,7 +1002,7 @@ static void record_ip(uint64_t ip, int counter)
                assert(left <= middle && middle <= right);
                if (!(left <= ip && ip <= right)) {
                        printf(" left: %016lx\n", left);
-                       printf("   ip: %016llx\n", ip);
+                       printf("   ip: %016lx\n", (unsigned long)ip);
                        printf("right: %016lx\n", right);
                }
                assert(left <= ip && ip <= right);