Skip to content

Commit ecbe794

Browse files
geliangtangrostedt
authored andcommitted
tracing: Fix mismatched comment in __string_len
Here __assign_str_len() should be used for the __string_len type, instead of __assign_str() in the comment. Link: https://lkml.kernel.org/r/5c012db463392d0e6d4f0636203d778962ad060a.1640170494.git.geliang.tang@suse.com Reviewed-by: Masami Hiramatsu <[email protected]> Fixes: 883b4ae ("tracing: Add trace_event helper macros __string_len() and __assign_str_len()") Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
1 parent 8147dc7 commit ecbe794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/trace_events/trace-events-sample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
*
156156
* To assign this string, use the helper macro __assign_str_len().
157157
*
158-
* __assign_str(foo, bar, len);
158+
* __assign_str_len(foo, bar, len);
159159
*
160160
* Then len + 1 is allocated to the ring buffer, and a nul terminating
161161
* byte is added. This is similar to:

0 commit comments

Comments
 (0)