mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-20 04:44:26 +08:00
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 <thorsten.blum@toblux.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
This commit is contained in:
parent
2c71fdf02a
commit
60b703c71f
@ -1048,7 +1048,7 @@ static int zonefs_init_zgroup(struct super_block *sb,
|
||||
zonefs_info(sb, "Zone group \"%s\" has %u file%s\n",
|
||||
zonefs_zgroup_name(ztype),
|
||||
zgroup->g_nr_zones,
|
||||
zgroup->g_nr_zones > 1 ? "s" : "");
|
||||
str_plural(zgroup->g_nr_zones));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user