]> git.baikalelectronics.ru Git - kernel.git/commit
drm: drm_printer: add __printf validation
authorJoe Perches <joe@perches.com>
Wed, 15 Feb 2017 23:33:18 +0000 (15:33 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 26 Feb 2017 20:43:08 +0000 (21:43 +0100)
commit7b79694fd2538d2840a46521026566918a39eda2
tree16367eb13e1aa003f7c975b13762ca427abd07f4
parent5693d58a4adaae41b9d65479810e40afbb8cb4be
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
drivers/gpu/drm/drm_print.c
include/drm/drm_print.h