summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index e05b6b01..6d07ce88 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -460,7 +460,7 @@ static void decode(struct drm_intel_decode *ctx,
*count);
drm_intel_decode(ctx);
} else {
- for (int i = 0; i + 4 < *count; i += 4)
+ for (int i = 0; i + 4 <= *count; i += 4)
printf("[%04x] %08x %08x %08x %08x\n",
4*i, data[i], data[i+1], data[i+2], data[i+3]);
}