fgraph: Use str_plural() in test_graph_storage_single()
Steven Rostedt
maintainerPATCH 1/1 fgraph: Use str_plural() in test_graph_storage_single()
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
ftrace/for-next
Head SHA1: b576d375b536568c85d42c15a189f6b6fdd75b74
Jiapeng Chong (1):
fgraph: Use str_plural() in test_graph_storage_single()
----
kernel/trace/trace_selftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------------------- commit b576d375b536568c85d42c15a189f6b6fdd75b74 Author: Jiapeng Chong <[email protected]> Date: Tue Jun 18 15:20:14 2024 +0800
fgraph: Use str_plural() in test_graph_storage_single()
Use existing str_plural() function rather than duplicating its implementation.
./kernel/trace/trace_selftest.c:880:56-60: opportunity for str_plural(size).
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
Signed-off-by Steven Rostedt (Google) <[email protected]>
kernel/trace/trace_selftest.c +1 -1
@@ -877,7 +877,7 @@ static int __init test_graph_storage_single(struct fgraph_fixture *fixture)int ret;pr_cont ("PASSED\n" ); -pr_info ("Testing fgraph storage of %d byte%s: " , size, size >1 ?"s" :"" ); +pr_info ("Testing fgraph storage of %d byte%s: " , size,str_plural (size)); ret =init_fgraph_fixture (fixture);if (ret && ret != -ENODEV ) {