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>
This commit is contained in:
parent
5ad3d8831f
commit
bbb0aef5cf
5 changed files with 17 additions and 14 deletions
|
|
@ -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, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue