aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-08-13 21:50:56 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-14 13:19:54 +0100
commit964d0a7b2bab935d48d3b2c4d6ab9b0efc74ce8b (patch)
treef9f35002d1fdb8e661c47039e1e661983acfeb3f /scripts
parentdb8894f2090629a2e12b1e7324c4c5c53367e048 (diff)
trace/simple: Fix compiler warning for 32 bit hosts
gcc complains when a 32 bit pointer is casted to a 64 bit integer. Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/tracetool/backend/simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py
index c7e47d6d72..e4b4a7f05d 100644
--- a/scripts/tracetool/backend/simple.py
+++ b/scripts/tracetool/backend/simple.py
@@ -79,7 +79,7 @@ def c(events):
)
# pointer var (not string)
elif type_.endswith('*'):
- out(' trace_record_write_u64(&rec, (uint64_t)(uint64_t *)%(name)s);',
+ out(' trace_record_write_u64(&rec, (uintptr_t)(uint64_t *)%(name)s);',
name = name,
)
# primitive data type