mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 10:11:38 -04:00
tracing: Remove spurious default precision from show_event_trigger/filter formats
Change 2d8b7f9bf8 ("tracing: Have show_event_trigger/filter format a bit more in columns")
added space padding to align the output.
However it used ("%*.s", len, "") which requests the default precision.
It doesn't matter here whether the userspace default (0) or kernel
default (no precision) is used, but the format should be "%*s".
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260326201824.3919-1-david.laight.linux@gmail.com
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
ad8363ebf8
commit
e197453eb0
@@ -1718,7 +1718,7 @@ static int t_show_filters(struct seq_file *m, void *v)
|
||||
|
||||
len = get_call_len(call);
|
||||
|
||||
seq_printf(m, "%s:%s%*.s%s\n", call->class->system,
|
||||
seq_printf(m, "%s:%s%*s%s\n", call->class->system,
|
||||
trace_event_name(call), len, "", filter->filter_string);
|
||||
|
||||
return 0;
|
||||
@@ -1750,7 +1750,7 @@ static int t_show_triggers(struct seq_file *m, void *v)
|
||||
len = get_call_len(call);
|
||||
|
||||
list_for_each_entry_rcu(data, &file->triggers, list) {
|
||||
seq_printf(m, "%s:%s%*.s", call->class->system,
|
||||
seq_printf(m, "%s:%s%*s", call->class->system,
|
||||
trace_event_name(call), len, "");
|
||||
|
||||
data->cmd_ops->print(m, data);
|
||||
|
||||
Reference in New Issue
Block a user