projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b527bab
)
tools lib traceevent: Fix cast from pointer to integer for 32 bit
author
Robert Richter
<
[email protected]
>
Tue, 7 Aug 2012 17:43:14 +0000
(19:43 +0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 8 Aug 2012 15:40:44 +0000
(12:40 -0300)
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 <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/lib/traceevent/event-parse.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/event-parse.c
b/tools/lib/traceevent/event-parse.c
index 5f34aa371b5660c503cfca05e9e0731aba013ea7..b7c2c491f61eb1ddf03a1c5c1b6807e8452d7be3 100644
(file)
--- a/
tools/lib/traceevent/event-parse.c
+++ b/
tools/lib/traceevent/event-parse.c
@@
-31,6
+31,7
@@
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
+#include <stdint.h>
#include "event-parse.h"
#include "event-utils.h"
@@
-3485,7
+3486,7
@@
process_defined_func(struct trace_seq *s, void *data, int size,
if (!string->str)
die("malloc str");
- args[i] = (u
nsigned long long
)string->str;
+ args[i] = (u
intptr_t
)string->str;
strings = string;
trace_seq_destroy(&str);
break;