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:
Thorsten Blum 2024-04-02 12:17:16 +02:00 committed by Damien Le Moal
parent 2c71fdf02a
commit 60b703c71f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}