aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2012-08-07 13:43:14 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-08-08 11:40:44 -0400
commit0cf260131c52f681533d17db6fd07545a3dc184e (patch)
treed648f29c4ed91e2d113a70a0504c734eaa74dc0f
parentb527bab59be7ca2154f644fcc4b9e3c267a6d855 (diff)
tools lib traceevent: Fix cast from pointer to integer for 32 bit
Fixing the integer cast reported by the following warning: tools/lib/traceevent/event-parse.c:3488:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: Ingo Molnar <mingo@kernel.org> Link: http://lkml.kernel.org/r/1344361396-7237-5-git-send-email-robert.richter@amd.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/lib/traceevent/event-parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 5f34aa371b56..b7c2c491f61e 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -31,6 +31,7 @@
31#include <stdarg.h> 31#include <stdarg.h>
32#include <ctype.h> 32#include <ctype.h>
33#include <errno.h> 33#include <errno.h>
34#include <stdint.h>
34 35
35#include "event-parse.h" 36#include "event-parse.h"
36#include "event-utils.h" 37#include "event-utils.h"
@@ -3485,7 +3486,7 @@ process_defined_func(struct trace_seq *s, void *data, int size,
3485 if (!string->str) 3486 if (!string->str)
3486 die("malloc str"); 3487 die("malloc str");
3487 3488
3488 args[i] = (unsigned long long)string->str; 3489 args[i] = (uintptr_t)string->str;
3489 strings = string; 3490 strings = string;
3490 trace_seq_destroy(&str); 3491 trace_seq_destroy(&str);
3491 break; 3492 break;