[PATCH -next] powerpc/powernv: fix wrong warning message in opalcore_config_init()

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2148d LANDED

Landed in mainline as 8ec5cb12cd95 on 2020-09-18.

2 messages, 2 authors, 2020-09-24 · open the first message on its own page

[PATCH -next] powerpc/powernv: fix wrong warning message in opalcore_config_init()

From: Qinglang Miao <hidden>
Date: 2020-09-16 06:21:25

The logic of the warn output is incorrect. The two args should be
exchanged.

Signed-off-by: Qinglang Miao <redacted>
---
 arch/powerpc/platforms/powernv/opal-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/powernv/opal-core.c b/arch/powerpc/platforms/powernv/opal-core.c
index 6dba3b622..23571f0b5 100644
--- a/arch/powerpc/platforms/powernv/opal-core.c
+++ b/arch/powerpc/platforms/powernv/opal-core.c
@@ -510,7 +510,7 @@ static void __init opalcore_config_init(void)
 	idx = be32_to_cpu(opalc_metadata->region_cnt);
 	if (idx > MAX_PT_LOAD_CNT) {
 		pr_warn("WARNING: OPAL regions count (%d) adjusted to limit (%d)",
-			MAX_PT_LOAD_CNT, idx);
+			idx, MAX_PT_LOAD_CNT);
 		idx = MAX_PT_LOAD_CNT;
 	}
 	for (i = 0; i < idx; i++) {
-- 
2.23.0

Re: [PATCH -next] powerpc/powernv: fix wrong warning message in opalcore_config_init()

From: Michael Ellerman <hidden>
Date: 2020-09-24 12:27:49

On Wed, 16 Sep 2020 14:21:29 +0800, Qinglang Miao wrote:
The logic of the warn output is incorrect. The two args should be
exchanged.
Applied to powerpc/next.

[1/1] powerpc/powernv: fix wrong warning message in opalcore_config_init()
      https://git.kernel.org/powerpc/c/8ec5cb12cd957e59b0470b75d26c901aaf645bc3

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help