diff options
| author | Daniel Bristot de Oliveira <[email protected]> | 2016-07-01 20:44:36 -0300 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2016-07-15 15:52:20 -0400 |
| commit | 752d596b394c62f081393bbf53dff2a2c244632e (patch) | |
| tree | 1fefaf1b368c66ab29cc9d226e9356b6547dfd28 /include | |
| parent | a17167ce1110e576f7032b98deeb6ec800f39c7a (diff) | |
tracing: Use __get_str() when manipulating strings
Use __get_str(str) rather than __get_dynamic_array(str) when
deadling with strings.
It is just a code cleanup, no changes on tracepoint ABI.
Link: http://lkml.kernel.org/r/ea260df91817411cca2a1f3db2abd88860094788.1467407618.git.bristot@redhat.com
Cc: Trond Myklebust <[email protected]>
Cc: Anna Schumaker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: [email protected]
Suggested-by: Steven Rostedt <[email protected]>
Reviewed-by: Steven Rostedt <[email protected]>
Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/printk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/printk.h b/include/trace/events/printk.h index c008bc99f9fa..542a7558154a 100644 --- a/include/trace/events/printk.h +++ b/include/trace/events/printk.h @@ -16,8 +16,8 @@ TRACE_EVENT(console, ), TP_fast_assign( - memcpy(__get_dynamic_array(msg), text, len); - ((char *)__get_dynamic_array(msg))[len] = 0; + memcpy(__get_str(msg), text, len); + __get_str(msg)[len] = 0; ), TP_printk("%s", __get_str(msg)) |