diff options
-rw-r--r-- | drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 | ||||
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c b/drivers/hid/intel-ish-hid/ipc/pci-ish.c index 20d647d2dd2c..34c95de6885e 100644 --- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c +++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c | |||
@@ -47,7 +47,8 @@ MODULE_DEVICE_TABLE(pci, ish_pci_tbl); | |||
47 | * | 47 | * |
48 | * Callback to direct log messages to Linux trace buffers | 48 | * Callback to direct log messages to Linux trace buffers |
49 | */ | 49 | */ |
50 | static void ish_event_tracer(struct ishtp_device *dev, char *format, ...) | 50 | static __printf(2, 3) |
51 | void ish_event_tracer(struct ishtp_device *dev, const char *format, ...) | ||
51 | { | 52 | { |
52 | if (trace_ishtp_dump_enabled()) { | 53 | if (trace_ishtp_dump_enabled()) { |
53 | va_list args; | 54 | va_list args; |
diff --git a/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h b/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h index a94f9a8a96a0..6a6d927b78b0 100644 --- a/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h +++ b/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | |||
@@ -238,7 +238,8 @@ struct ishtp_device { | |||
238 | uint64_t ishtp_host_dma_rx_buf_phys; | 238 | uint64_t ishtp_host_dma_rx_buf_phys; |
239 | 239 | ||
240 | /* Dump to trace buffers if enabled*/ | 240 | /* Dump to trace buffers if enabled*/ |
241 | void (*print_log)(struct ishtp_device *dev, char *format, ...); | 241 | __printf(2, 3) void (*print_log)(struct ishtp_device *dev, |
242 | const char *format, ...); | ||
242 | 243 | ||
243 | /* Debug stats */ | 244 | /* Debug stats */ |
244 | unsigned int ipc_rx_cnt; | 245 | unsigned int ipc_rx_cnt; |