]> git.ipfire.org Git - thirdparty/linux.git/commit
initrd: Use str_plural() in rd_load_image()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 12 Sep 2025 07:46:52 +0000 (09:46 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 15 Sep 2025 12:47:14 +0000 (14:47 +0200)
commitbeb022ef9263d0c5b1a994fa3ab5d3244a01aaa1
treee458dd6d46ce1813011250fc421ac8c53baae477
parente60625e7ce10f696690d9e36a9f32fc7c1897f79
initrd: Use str_plural() in rd_load_image()

Add the local variable 'nr_disks' and replace the manual ternary "s"
pluralization with the standardized str_plural() helper function.

Use pr_notice() instead of printk(KERN_NOTICE) to silence a checkpatch
warning.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
init/do_mounts_rd.c