OSDN Git Service

hw/riscv: Fix typo field in error_report
authorZhao Liu <zhao1.liu@intel.com>
Tue, 18 Jul 2023 08:07:12 +0000 (16:07 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 19 Jul 2023 04:31:41 +0000 (14:31 +1000)
commita916dc954bb5d5aebe5bfcc222cbe9f984118442
tree7e7a9159f97e0b0b04ad6f182a6443a35021f6d0
parent55ea47397d07db2eb67cb7e86b4e7772098ece5f
hw/riscv: Fix typo field in error_report

"smp.cpus" means the number of online CPUs and "smp.max_cpus" means the
total number of CPUs.

riscv_numa_get_default_cpu_node_id() checks "smp.cpus" and the
"available CPUs" description in the next error message also indicates
online CPUs.

So report "smp.cpus" in error_report() instand of "smp.max_cpus".

Since "smp.cpus" is "unsigned int", use "%u".

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230718080712.503333-1-zhao1.liu@linux.intel.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/numa.c