From 6ced747e10221b1ea52c43c58f0b2b67b6506267 Mon Sep 17 00:00:00 2001 From: zihengL1 Date: Thu, 21 Jul 2022 17:02:53 +0800 Subject: [PATCH] config-tools: fix board inspector crashed error Fixed the problem of exception handling of the incoming type error in reading GSI number method in 40-acpi-tables.py line 37 when dmesg command line is too long. Tracked-On: #7906 Reviewed-by: Junjie Mao Signed-off-by: Ziheng Li --- misc/config_tools/board_inspector/extractors/40-acpi-tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/board_inspector/extractors/40-acpi-tables.py b/misc/config_tools/board_inspector/extractors/40-acpi-tables.py index 4c2aa6f2b..0e2de3e9b 100644 --- a/misc/config_tools/board_inspector/extractors/40-acpi-tables.py +++ b/misc/config_tools/board_inspector/extractors/40-acpi-tables.py @@ -34,7 +34,7 @@ def extract_gsi_number(ioapic_node, apic_id): add_child(ioapic_node, "gsi_number", str(current_max - previous_max)) break except: - add_child(ioapic_node, "gsi_number", DEFAULT_MAX_IOAPIC_LINES) + add_child(ioapic_node, "gsi_number", str(DEFAULT_MAX_IOAPIC_LINES)) break os.close(fd)