intel_error_decode: Be more lax for whitespace around parsing PCI-ID

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-09 13:50:53 +01:00
parent 3986d9faf3
commit 412e7b341f

View File

@ -362,6 +362,8 @@ read_data_file (FILE *file)
printf("%s", line);
matched = sscanf (line, "PCI ID: 0x%04x\n", &reg);
if (matched == 0)
matched = sscanf (line, " PCI ID: 0x%04x\n", &reg);
if (matched == 1) {
devid = reg;
printf("Detected GEN%i chipset\n",