]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h
HID: intel-ish-hid: add printf attribute to print_log()
[karo-tx-linux.git] / drivers / hid / intel-ish-hid / ishtp / ishtp-dev.h
index a94f9a8a96a022f7684d33c79b15115aae91e2b1..6a6d927b78b0e254d5f5248ed11a46852d969680 100644 (file)
@@ -238,7 +238,8 @@ struct ishtp_device {
        uint64_t ishtp_host_dma_rx_buf_phys;
 
        /* Dump to trace buffers if enabled*/
-       void (*print_log)(struct ishtp_device *dev, char *format, ...);
+       __printf(2, 3) void (*print_log)(struct ishtp_device *dev,
+                                        const char *format, ...);
 
        /* Debug stats */
        unsigned int    ipc_rx_cnt;