summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-12-21 08:03:02 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-01-22 16:20:37 +0100
commitb1f4213cfa2a21d07fc34519cb8c6c999f8784b1 (patch)
treee7cb38399295d29b833d2b387f0802bf7427de04
parent19c329f6808995b142b3966301f217c831e7cf31 (diff)
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>
-rw-r--r--drivers/pnp/interface.c1
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;