Skip to content

Commit

Permalink
tracing: Fix mismatched comment in __string_len
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
geliangtang authored and rostedt committed Jan 13, 2022
1 parent 8147dc7 commit ecbe794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/trace_events/trace-events-sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
*
* To assign this string, use the helper macro __assign_str_len().
*
* __assign_str(foo, bar, len);
* __assign_str_len(foo, bar, len);
*
* Then len + 1 is allocated to the ring buffer, and a nul terminating
* byte is added. This is similar to:
Expand Down

0 comments on commit ecbe794

Please sign in to comment.