diff options
author | Joe Perches <joe@perches.com> | 2017-02-16 00:33:18 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-26 21:43:08 +0100 |
commit | 3c6d6e0fbf5eb6367dfc8a97f72bd625e78b1aae (patch) | |
tree | 16367eb13e1aa003f7c975b13762ca427abd07f4 /drivers/gpu/drm/drm_print.c | |
parent | Merge airlied/drm-next into drm-misc-next (diff) | |
download | linux-3c6d6e0fbf5eb6367dfc8a97f72bd625e78b1aae.tar.xz linux-3c6d6e0fbf5eb6367dfc8a97f72bd625e78b1aae.zip |
drm: drm_printer: add __printf validation
drm_printf does not currently use the compiler to verify
format and arguments. Make it do so.
Miscellanea:
o Add appropriate #include files for __printf and struct va_format
o Convert dev_printk to dev_info
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/133858f214e9b90f92bb8eb44c6b1dc04429933d.1487201526.git.joe@perches.com
Diffstat (limited to 'drivers/gpu/drm/drm_print.c')
-rw-r--r-- | drivers/gpu/drm/drm_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c index 02a107d50706..74c466aca622 100644 --- a/drivers/gpu/drm/drm_print.c +++ b/drivers/gpu/drm/drm_print.c @@ -36,7 +36,7 @@ EXPORT_SYMBOL(__drm_printfn_seq_file); void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf) { - dev_printk(KERN_INFO, p->arg, "[" DRM_NAME "] %pV", vaf); + dev_info(p->arg, "[" DRM_NAME "] %pV", vaf); } EXPORT_SYMBOL(__drm_printfn_info); |