Skip to content

Commit b576d37

Browse files
Jiapeng Chongrostedt
authored andcommitted
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/[email protected] Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9349 Signed-off-by: Jiapeng Chong <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 63a8dfb commit b576d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_selftest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ static int __init test_graph_storage_single(struct fgraph_fixture *fixture)
877877
int ret;
878878

879879
pr_cont("PASSED\n");
880-
pr_info("Testing fgraph storage of %d byte%s: ", size, size > 1 ? "s" : "");
880+
pr_info("Testing fgraph storage of %d byte%s: ", size, str_plural(size));
881881

882882
ret = init_fgraph_fixture(fixture);
883883
if (ret && ret != -ENODEV) {

0 commit comments

Comments
 (0)