OSDN Git Service

lib/vsprintf: Add support for printing V4L2 and DRM fourccs
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 16 Feb 2021 15:57:20 +0000 (17:57 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 17 Feb 2021 11:52:20 +0000 (12:52 +0100)
commitaf612e43de6d27df51a7636229be7d33fe3ab7b5
treea84a7181fd4374fbe5071b9c41dde8afc26c91e1
parent4d36cf070249564546f07a3fe5456e29dbbc1593
lib/vsprintf: Add support for printing V4L2 and DRM fourccs

Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM
pixel formats denoted by fourccs. The fourcc encoding is the same for both
so the same implementation can be used.

Suggested-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210216155723.17109-2-sakari.ailus@linux.intel.com
Documentation/core-api/printk-formats.rst
lib/test_printf.c
lib/vsprintf.c
scripts/checkpatch.pl