]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc: Use str_on_off() helper in check_cache_coherency()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 20 Dec 2024 19:17:04 +0000 (20:17 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 23 Dec 2024 04:06:29 +0000 (09:36 +0530)
Remove hard-coded strings by using the str_on_off() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241220191705.1446-2-thorsten.blum@linux.dev
arch/powerpc/kernel/setup-common.c

index 6fa179448c3397c6910a47b3446bfe2212414829..f7d7a93f07fc709a5ae026ec7c57d7da224b251a 100644 (file)
@@ -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();
        }