diff options
author | Yuntao Wang <ytcoode@gmail.com> | 2022-01-14 21:10:52 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-05-26 21:12:52 -0400 |
commit | e4931b824a6f36cae9cc5632709f015cfa748a25 (patch) | |
tree | 950d5010d7f1c4707951801ad6dd09b9539512ae /net/802 | |
parent | e35c2d8e22745751cf304ec3fe39616643db2e0a (diff) |
tracing: Use trace_create_file() to simplify creation of tracefs entries
Creating tracefs entries with tracefs_create_file() followed by pr_warn()
is tedious and repetitive, we can use trace_create_file() to simplify
this process and make the code more readable.
Link: https://lkml.kernel.org/r/20220114131052.534382-1-ytcoode@gmail.com
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions