diff options
author | Joe Perches <joe@perches.com> | 2011-04-17 20:35:52 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-04-28 14:53:21 +1000 |
commit | bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f (patch) | |
tree | 858fdc7ee2b358827888f278fdfd0dddfbacc64b /include/drm | |
parent | 5ad3d8831f0c97257460c11ddcc1cc0466c762d4 (diff) | |
download | kernel_samsung_aries-bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f.zip kernel_samsung_aries-bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f.tar.gz kernel_samsung_aries-bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f.tar.bz2 |
drm: Verify debug message arguments
Add __attribute__((format (printf, 4, 5))) to drm_ut_debug_printk
and fix fallout.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 22db51d..4ab866e 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -122,7 +122,8 @@ struct drm_device; * using the DRM_DEBUG_KMS and DRM_DEBUG. */ -extern void drm_ut_debug_printk(unsigned int request_level, +extern __attribute__((format (printf, 4, 5))) +void drm_ut_debug_printk(unsigned int request_level, const char *prefix, const char *function_name, const char *format, ...); |