trace: simple style changes
PATCH 1/1 trace: simple style changes
This changes two lines in simple.c that end with a comma, and replaces them with a semi-colon.
Signed-off-by Larry Dewey <[email protected]>
--- trace/simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
trace/simple.c +2 -2
@@ -169,9 +169,9 @@ static gpointer writeout_thread(gpointer opaque)wait_for_trace_records_available ();if (g_atomic_int_get (&dropped_events)) { - dropped.rec.event =DROPPED_EVENT_ID , + dropped.rec.event =DROPPED_EVENT_ID ; dropped.rec.timestamp_ns =get_clock (); - dropped.rec.length =sizeof (TraceRecord) +sizeof (uint64_t ), + dropped.rec.length =sizeof (TraceRecord) +sizeof (uint64_t ); dropped.rec.pid = trace_pid; do { dropped_count = g_atomic_int_get(&dropped_events);
Signature · 1 line
2.19.1
Quoted 15 lines · Larry Dewey
This changes two lines in
simple.cthat end with a comma, and replaces them with a semi-colon.Signed-off-by Larry Dewey <[email protected]>--- trace/simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)trace/simple.c +0
-0@@ -169,9 +169,9 @@ static gpointer writeout_thread(gpointer opaque)wait_for_trace_records_available ();
trace/simple.c static gpointer writeout_thread(gpointer opaque) · line 177
Quoted 10 lines
trace/simple.c +2
-2if (g_atomic_int_get (&dropped_events)) { - dropped.rec.event =DROPPED_EVENT_ID , + dropped.rec.event =DROPPED_EVENT_ID ; dropped.rec.timestamp_ns =get_clock (); - dropped.rec.length =sizeof (TraceRecord) +sizeof (uint64_t ), + dropped.rec.length =sizeof (TraceRecord) +sizeof (uint64_t ); dropped.rec.pid = trace_pid; do { dropped_count = g_atomic_int_get(&dropped_events);
I can't see any reason for why sequence points were used, other than in 62bab73213ba885426a781eb2741670b9f3cae36 getting mixed up between
if (cond) { ...; ... } and an earlier var = (type) { ..., ... }.
Reviewed-by John Snow <[email protected]>
Stefan Hajnoczi
AppliedQuoted 7 lines · Larry Dewey
This changes two lines in
simple.cthat end with a comma, and replaces them with a semi-colon.Signed-off-by Larry Dewey <[email protected]>--- trace/simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to my tracing-next tree:
https://github.com/stefanha/qemu/commits/tracing-next
Stefan