Skip to content

Commit 60b703c

Browse files
tobluxdamien-lemoal
authored andcommitted
zonefs: Use str_plural() to fix Coccinelle warning
Fixes the following Coccinelle/coccicheck warning reported by string_choices.cocci: opportunity for str_plural(zgroup->g_nr_zones) Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 2c71fdf commit 60b703c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/zonefs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ static int zonefs_init_zgroup(struct super_block *sb,
10481048
zonefs_info(sb, "Zone group \"%s\" has %u file%s\n",
10491049
zonefs_zgroup_name(ztype),
10501050
zgroup->g_nr_zones,
1051-
zgroup->g_nr_zones > 1 ? "s" : "");
1051+
str_plural(zgroup->g_nr_zones));
10521052

10531053
return 0;
10541054
}

0 commit comments

Comments
 (0)