From 2e10930d128dd2260d2211bb454047e4331229f6 Mon Sep 17 00:00:00 2001 From: Alexander Merritt Date: Fri, 24 Jan 2020 13:17:56 -0800 Subject: [PATCH] Python scripts discovering CPU IDs are off by 1 Tracked-On: #4387 Signed-off-by: Alexander Merritt --- misc/acrn-config/target/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/acrn-config/target/misc.py b/misc/acrn-config/target/misc.py index ff2680d60..36212fc5d 100644 --- a/misc/acrn-config/target/misc.py +++ b/misc/acrn-config/target/misc.py @@ -201,7 +201,7 @@ def dump_cpu_core_info(config): print("\t{}".format(processor_id), end="", file=config) processor_id += 1 - while (processor_id < int(line.split('-')[1].strip())): + while (processor_id <= int(line.split('-')[1].strip())): print(", {}".format(processor_id), end="", file=config) processor_id += 1