summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-04-17 20:35:52 -0700
committerDave Airlie <airlied@redhat.com>2011-04-28 14:53:21 +1000
commitbbb0aef5cfe95fe9b51a7eeba4a440b69037b01f (patch)
tree858fdc7ee2b358827888f278fdfd0dddfbacc64b /include/drm
parent5ad3d8831f0c97257460c11ddcc1cc0466c762d4 (diff)
downloadop-kernel-dev-bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f.zip
op-kernel-dev-bbb0aef5cfe95fe9b51a7eeba4a440b69037b01f.tar.gz
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.h3
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, ...);
OpenPOWER on IntegriCloud