diff options
author | Tom Rix <trix@redhat.com> | 2020-12-21 19:03:02 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-01-22 18:20:37 +0300 |
commit | b1f4213cfa2a21d07fc34519cb8c6c999f8784b1 (patch) | |
tree | e7cb38399295d29b833d2b387f0802bf7427de04 /drivers/pnp | |
parent | 19c329f6808995b142b3966301f217c831e7cf31 (diff) | |
download | linux-b1f4213cfa2a21d07fc34519cb8c6c999f8784b1.tar.xz |
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>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index 187e4a1175b0..602c46893e83 100644 --- a/drivers/pnp/interface.c +++ b/drivers/pnp/interface.c @@ -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; |