summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-09 13:50:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-09 13:50:53 +0100
commit412e7b341f40a2d21067c7059a64e500945d6433 (patch)
tree811269699e38424208f604add077459a09b75259 /tools/intel_error_decode.c
parent3986d9faf343639dc9ceec23e880a99f4fcea365 (diff)
intel_error_decode: Be more lax for whitespace around parsing PCI-ID
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index ee0a270d..e0ec8f60 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -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",