Commit a17167ce authored by Daniel Bristot de Oliveira's avatar Daniel Bristot de Oliveira Committed by Steven Rostedt

tracing, RAS: Cleanup on __get_str() usage

__get_str(msg) does not need (char *) operator overloading to access
mgs's elements anymore. This patch substitutes
((char *)__get_str(msg))[0] usage to __get_str(msg)[0].

It is just a code cleanup, no changes on tracepoint ABI.

Link: http://lkml.kernel.org/r/6f2db5be7705da2cb483923320c91283d7c712a7.1467407618.git.bristot@redhat.com

Cc: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Cc: Ingo Molnar <mingo@redhat.com>
Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 934de5f2
...@@ -147,7 +147,7 @@ TRACE_EVENT(mc_event, ...@@ -147,7 +147,7 @@ TRACE_EVENT(mc_event,
__entry->error_count, __entry->error_count,
mc_event_error_type(__entry->error_type), mc_event_error_type(__entry->error_type),
__entry->error_count > 1 ? "s" : "", __entry->error_count > 1 ? "s" : "",
((char *)__get_str(msg))[0] ? " " : "", __get_str(msg)[0] ? " " : "",
__get_str(msg), __get_str(msg),
__get_str(label), __get_str(label),
__entry->mc_index, __entry->mc_index,
...@@ -157,7 +157,7 @@ TRACE_EVENT(mc_event, ...@@ -157,7 +157,7 @@ TRACE_EVENT(mc_event,
__entry->address, __entry->address,
1 << __entry->grain_bits, 1 << __entry->grain_bits,
__entry->syndrome, __entry->syndrome,
((char *)__get_str(driver_detail))[0] ? " " : "", __get_str(driver_detail)[0] ? " " : "",
__get_str(driver_detail)) __get_str(driver_detail))
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment