Fix missing model of inspur's FPGA

This patch modifies incorrect variable 'name' with 'model'.

Change-Id: I0e5058d521bd2853700ac7b9e4cd17f700e08ba9
This commit is contained in:
ericxiett 2022-01-08 02:00:15 +00:00
parent 725c512da6
commit 77a5b390ad
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ INSPUR_FPGA_FLAGS = ["Inspur Electronic Information Industry Co., Ltd.",
INSPUR_FPGA_INFO_PATTERN = re.compile(
r"(?P<devices>[0-9a-fA-F]{4}:[0-9a-fA-F]{2}:"
r"[0-9a-fA-F]{2}\.[0-9a-fA-F]) "
r"(?P<controller>.*) [\[].*]: (?P<name>.*) .*"
r"(?P<controller>.*) [\[].*]: (?P<model>.*) .*"
r"[\[](?P<vendor_id>[0-9a-fA-F]"
r"{4}):(?P<product_id>[0-9a-fA-F]{4})].*")