Skip to content

Commit 26bef35

Browse files
tobluxmaddy-kerneldev
authored andcommitted
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 <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
1 parent eda86a4 commit 26bef35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/kernel/setup-common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ static int __init check_cache_coherency(void)
834834
if (devtree_coherency != KERNEL_COHERENCY) {
835835
printk(KERN_ERR
836836
"kernel coherency:%s != device tree_coherency:%s\n",
837-
KERNEL_COHERENCY ? "on" : "off",
838-
devtree_coherency ? "on" : "off");
837+
str_on_off(KERNEL_COHERENCY),
838+
str_on_off(devtree_coherency));
839839
BUG();
840840
}
841841

0 commit comments

Comments
 (0)