powerpc/powernv: fix wrong warning message in opalcore_config_init()

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
This commit is contained in:
Qinglang Miao 2020-09-16 14:21:29 +08:00 committed by Michael Ellerman
parent 1d42e07e9c
commit 8ec5cb12cd
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ static void __init opalcore_config_init(void)
idx = be32_to_cpu(opalc_metadata->region_cnt); idx = be32_to_cpu(opalc_metadata->region_cnt);
if (idx > MAX_PT_LOAD_CNT) { if (idx > MAX_PT_LOAD_CNT) {
pr_warn("WARNING: OPAL regions count (%d) adjusted to limit (%d)", 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; idx = MAX_PT_LOAD_CNT;
} }
for (i = 0; i < idx; i++) { for (i = 0; i < idx; i++) {