powerpc/powernv: fix wrong warning message in opalcore_config_init()
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 16 Sep 2020 06:21:29 +0000 (14:21 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Sep 2020 09:59:45 +0000 (19:59 +1000)
The logic of the warn output is incorrect. The two args should be
exchanged.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200916062129.190864-1-miaoqinglang@huawei.com
arch/powerpc/platforms/powernv/opal-core.c

index 6dba3b6..23571f0 100644 (file)
@@ -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++) {