diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2024-12-20 22:17:04 +0300 |
---|---|---|
committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2024-12-23 07:06:29 +0300 |
commit | 26bef359bc4f10747f8d0b3a7f3fe60ef99ce2c1 (patch) | |
tree | 81fceccb3316b293f3e8c86983ce60771bc1e68d | |
parent | eda86a41a1c7700757c9217f74b9d57431c3e5f4 (diff) | |
download | linux-26bef359bc4f10747f8d0b3a7f3fe60ef99ce2c1.tar.xz |
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
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 6fa179448c33..f7d7a93f07fc 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(); } |