mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
PNP: add printf attribute to log function
Attributing the function allows the compiler to more thoroughly check the use of the function with -Wformat and similar flags. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
19c329f680
commit
b1f4213cfa
@@ -33,6 +33,7 @@ struct pnp_info_buffer {
|
||||
|
||||
typedef struct pnp_info_buffer pnp_info_buffer_t;
|
||||
|
||||
__printf(2, 3)
|
||||
static int pnp_printf(pnp_info_buffer_t * buffer, char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
Reference in New Issue
Block a user