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 <junjie.mao@intel.com>
Signed-off-by: Ziheng Li <ziheng.li@intel.com>
This commit is contained in:
zihengL1 2022-07-21 17:02:53 +08:00 committed by acrnsi-robot
parent 4f4da08490
commit 6ced747e10
1 changed files with 1 additions and 1 deletions

View File

@ -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)