Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tracing: Remove spurious default precision from show_event_trigger/filter formats

Change 2d8b7f9bf8e6e ("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>

authored by

David Laight and committed by
Steven Rostedt (Google)
e197453e ad8363eb

+2 -2
+2 -2
kernel/trace/trace_events.c
··· 1718 1718 1719 1719 len = get_call_len(call); 1720 1720 1721 - seq_printf(m, "%s:%s%*.s%s\n", call->class->system, 1721 + seq_printf(m, "%s:%s%*s%s\n", call->class->system, 1722 1722 trace_event_name(call), len, "", filter->filter_string); 1723 1723 1724 1724 return 0; ··· 1750 1750 len = get_call_len(call); 1751 1751 1752 1752 list_for_each_entry_rcu(data, &file->triggers, list) { 1753 - seq_printf(m, "%s:%s%*.s", call->class->system, 1753 + seq_printf(m, "%s:%s%*s", call->class->system, 1754 1754 trace_event_name(call), len, ""); 1755 1755 1756 1756 data->cmd_ops->print(m, data);