Joe Perches
3c6d6e0fbf
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 <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/133858f214e9b90f92bb8eb44c6b1dc04429933d.1487201526.git.joe@perches.com
2017-02-26 21:43:08 +01:00
Daniel Vetter
ea0dd85a75
drm/doc: use preferred struct reference in kernel-doc
...
sed -e 's/\( \* .*\)struct &\([_a-z]*\)/\1\&struct \2/' -i
Originally I wasnt a friend of this style because I thought a
line-break between the "&struct" and "foo" part would break it. But a
quick test shows that " * &struct \n * foo\n" works pefectly well with
current kernel-doc. So time to mass-apply these changes!
Cc: Jani Nikula <[email protected] >
Cc: Chris Wilson <[email protected] >
Reviewed-by: David Herrmann <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2016-12-30 13:34:59 +01:00
Daniel Vetter
3d387d923c
drm/printer: add debug printer
...
Useful for dumping lots of data into dmesg, e.g. drm_mm.
v2: Fixup export_symbol line, I misplaced a hunk (Chris).
Cc: Rob Clark <[email protected] >
Reviewed-by: Chris Wilson <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2016-12-30 11:43:40 +01:00
Daniel Vetter
2d5e836de7
drm/print: Move kerneldoc next to definition
...
kerneldoc expects the comment next to definitions, otherwise it can't
pick up exported vs. internal stuff.
This fixes a warning from the doc build done with:
$ make DOCBOOKS="" htmldocs
Fixes: d8187177b0 ("drm: add helper for printing to log or seq_file")
Cc: Rob Clark <[email protected] >
Cc: Sean Paul <[email protected] >
Reviewed-by: Chris Wilson <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2016-11-15 12:55:24 +01:00
Rob Clark
d8187177b0
drm: add helper for printing to log or seq_file
...
Sometimes it is nice not to duplicate equivalent printk() and
seq_printf() code.
v2: simplify things w/ va_format, and use dev_printk, docs
Signed-off-by: Rob Clark <[email protected] >
Signed-off-by: Sean Paul <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
2016-11-08 16:38:03 -05:00