Skip to content

Commit

Permalink
drm: sis fix compile warning
Browse files Browse the repository at this point in the history
Prevent a gcc warning in the SIS DRM driver.  offset is a unsigned int and
the printk wants a long.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie committed Mar 28, 2006
1 parent f3dd5c3 commit d2b58b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/sis_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static int sis_fb_alloc(DRM_IOCTL_ARGS)

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;
}
Expand Down

0 comments on commit d2b58b5

Please sign in to comment.