Skip to contentSkip to conversation

sis: Fix compile warning (trivial)

PATCH New Jon Mason 1 participant 1 message Mar 14, 2006 Char and misc drivers

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 sis: Fix compile warning (trivial)

Trivial patch to prevent a gcc warning in the SIS DRM driver. offset is a unsigned int and the printk wants a long.

Thanks,
Jon

drivers/char/drm/sis_mm.c +1 -1
diff -r 96b636489b54 drivers/char/drm/sis_mm.c
@@ -110,7 +110,7 @@
 
 	DRM_COPY_TO_USER_IOCTL(argp, fb, sizeof(fb));
 
-	DRM_DEBUG("alloc fb, size = %d, offset = %ld\n", fb.size, req.offset);
+	DRM_DEBUG("alloc fb, size = %d, offset = %d\n", fb.size, req.offset);
 
 	return retval;
 }