From: Jiapeng Chong Date: Tue, 18 Jun 2024 07:20:14 +0000 (+0800) Subject: fgraph: Use str_plural() in test_graph_storage_single() X-Git-Tag: v6.11-rc1~133^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b576d375b536568c85d42c15a189f6b6fdd75b74;p=thirdparty%2Fkernel%2Flinux.git 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). Link: https://lore.kernel.org/linux-trace-kernel/20240618072014.20855-1-jiapeng.chong@linux.alibaba.com Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9349 Signed-off-by: Jiapeng Chong Acked-by: Masami Hiramatsu (Google) Signed-off-by: Steven Rostedt (Google) --- diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index adf0f436d84bd..97f1e4bc47dc8 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c @@ -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) {