Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Don't cast ptrdiff_t to ...
details: https://anonhg.NetBSD.org/src/rev/7ab0b10945fc
branches: trunk
changeset: 330710:7ab0b10945fc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Jul 18 19:34:59 2014 +0000
description:
Don't cast ptrdiff_t to unsigned long before formatting it with %td.
Noted by Robert Swindells and Patrick Welche.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2a746100eef3 -r 7ab0b10945fc sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c Fri Jul 18 18:17:54 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c Fri Jul 18 19:34:59 2014 +0000
@@ -416,7 +416,7 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index