aboutsummaryrefslogtreecommitdiff
path: root/trace
diff options
context:
space:
mode:
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>2012-07-20 18:52:13 +0530
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-14 10:40:39 +0100
commit83d35d3e9909614e952021a92dbb39421977affc (patch)
tree822988ec8a501ecffd4e6f1abf966c5ac1dbbdbd /trace
parent8ae601e8fedbbc9b1a1514796bb608e942660bd9 (diff)
downloadqemu-83d35d3e9909614e952021a92dbb39421977affc.zip
qemu-83d35d3e9909614e952021a92dbb39421977affc.tar.gz
qemu-83d35d3e9909614e952021a92dbb39421977affc.tar.bz2
trace: remove unnecessary write_to_buffer() typecasting
The buffer argument is void* so it is not necessary to cast. Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'trace')
-rw-r--r--trace/simple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trace/simple.c b/trace/simple.c
index 5d92939..a0e0f05 100644
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -235,9 +235,9 @@ int trace_record_start(TraceBufferRecord *rec, TraceEventID event, size_t datasi
rec->next_tbuf_idx = new_idx % TRACE_BUF_LEN;
rec_off = idx;
- rec_off = write_to_buffer(rec_off, (uint8_t*)&event, sizeof(event));
- rec_off = write_to_buffer(rec_off, (uint8_t*)&timestamp_ns, sizeof(timestamp_ns));
- rec_off = write_to_buffer(rec_off, (uint8_t*)&rec_len, sizeof(rec_len));
+ rec_off = write_to_buffer(rec_off, &event, sizeof(event));
+ rec_off = write_to_buffer(rec_off, &timestamp_ns, sizeof(timestamp_ns));
+ rec_off = write_to_buffer(rec_off, &rec_len, sizeof(rec_len));
rec->tbuf_idx = idx;
rec->rec_off = (idx + sizeof(TraceRecord)) % TRACE_BUF_LEN;