diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-15 11:14:06 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-15 11:14:06 -0500 |
commit | 8fa27d21a993e261137d15def5475ba2c4d8985b (patch) | |
tree | acb9baa250763fe6befe5a3b928e9ab345b39fe7 /scripts | |
parent | 03834e22abafbc8dc4052d46a5ccd6dd135a54a3 (diff) | |
parent | 4552e41025af4694c55854448c3ae4d95e72c7f6 (diff) |
Merge remote-tracking branch 'stefanha/tracing' into staging
* stefanha/tracing:
trace/simple: Replace asprintf by g_strdup_printf
trace/simple: Fix compiler warning for 32 bit hosts
trace: avoid pointer aliasing in trace_record_finish()
trace: drop unused TraceBufferRecord->next_tbuf_idx field
trace: remove unnecessary write_to_buffer() typecasting
trace: rename TraceRecordHeader to TraceLogHeader
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/tracetool/backend/simple.py | 2 |
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 |