diff options
author | Daniel Bristot de Oliveira <bristot@redhat.com> | 2016-07-01 19:44:35 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-07-15 15:51:16 -0400 |
commit | a17167ce1110e576f7032b98deeb6ec800f39c7a (patch) | |
tree | c202b0993055c64dd8b78b2bda066472f7177c5b | |
parent | 934de5f2eac35f34954166cdb47af3593451658a (diff) |
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: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | include/ras/ras_event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ras/ras_event.h b/include/ras/ras_event.h index 1443d79e4fe6..1791a12cfa85 100644 --- a/include/ras/ras_event.h +++ b/include/ras/ras_event.h | |||
@@ -147,7 +147,7 @@ TRACE_EVENT(mc_event, | |||
147 | __entry->error_count, | 147 | __entry->error_count, |
148 | mc_event_error_type(__entry->error_type), | 148 | mc_event_error_type(__entry->error_type), |
149 | __entry->error_count > 1 ? "s" : "", | 149 | __entry->error_count > 1 ? "s" : "", |
150 | ((char *)__get_str(msg))[0] ? " " : "", | 150 | __get_str(msg)[0] ? " " : "", |
151 | __get_str(msg), | 151 | __get_str(msg), |
152 | __get_str(label), | 152 | __get_str(label), |
153 | __entry->mc_index, | 153 | __entry->mc_index, |
@@ -157,7 +157,7 @@ TRACE_EVENT(mc_event, | |||
157 | __entry->address, | 157 | __entry->address, |
158 | 1 << __entry->grain_bits, | 158 | 1 << __entry->grain_bits, |
159 | __entry->syndrome, | 159 | __entry->syndrome, |
160 | ((char *)__get_str(driver_detail))[0] ? " " : "", | 160 | __get_str(driver_detail)[0] ? " " : "", |
161 | __get_str(driver_detail)) | 161 | __get_str(driver_detail)) |
162 | ); | 162 | ); |
163 | 163 | ||