linux/drivers/hid/intel-ish-hid/ishtp
Nicolas Iooss 0aae34fa31 HID: intel-ish-hid: add printf attribute to print_log()
Structure ishtp_device contains a logging function, print_log(), which
formats some of its parameters using vsnprintf(). Add a __printf
attribute to this function field (and to ish_event_tracer()) in order to
detect at compile time issues related to the printf-like formatting.

While at it, make format parameter a const pointer as print_log() is not
supposed to modify it.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2017-01-02 13:16:32 +01:00
..
bus.c HID: intel_ish-hid: use %pUL for uuid formatting 2016-12-02 15:00:12 +01:00
bus.h
client-buffers.c HID: intel_ish-hid: Use kzalloc instead of kmalloc/memset 2016-08-29 09:36:20 +02:00
client.c
client.h
dma-if.c
hbm.c HID: intel-ish-hid: Fix potential race condition 2016-11-29 15:17:34 +01:00
hbm.h
init.c
ishtp-dev.h HID: intel-ish-hid: add printf attribute to print_log() 2017-01-02 13:16:32 +01:00