Don't cast ptrdiff_t to unsigned long before formatting it with %td.

Noted by Robert Swindells and Patrick Welche.
This commit is contained in:
riastradh 2014-07-18 19:34:59 +00:00
parent f6ba350205
commit adbb470385
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ int i915_parse_cmds(struct intel_ring_buffer *ring,
DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%d batchlen=%td\n",
*cmd,
length,
(unsigned long)(batch_end - cmd));
batch_end - cmd);
ret = -EINVAL;
break;
}