From: Thorsten Blum Date: Fri, 20 Dec 2024 19:17:04 +0000 (+0100) Subject: powerpc: Use str_on_off() helper in check_cache_coherency() X-Git-Tag: v6.14-rc1~197^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26bef359bc4f10747f8d0b3a7f3fe60ef99ce2c1;p=thirdparty%2Flinux.git powerpc: Use str_on_off() helper in check_cache_coherency() Remove hard-coded strings by using the str_on_off() helper function. Signed-off-by: Thorsten Blum Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20241220191705.1446-2-thorsten.blum@linux.dev --- diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 6fa179448c339..f7d7a93f07fc7 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -834,8 +834,8 @@ static int __init check_cache_coherency(void) if (devtree_coherency != KERNEL_COHERENCY) { printk(KERN_ERR "kernel coherency:%s != device tree_coherency:%s\n", - KERNEL_COHERENCY ? "on" : "off", - devtree_coherency ? "on" : "off"); + str_on_off(KERNEL_COHERENCY), + str_on_off(devtree_coherency)); BUG(); }