summaryrefslogtreecommitdiffstats
path: root/drivers/hid/intel-ish-hid/ishtp-hid.c
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2016-12-22 11:09:09 +0100
committerJiri Kosina <jkosina@suse.cz>2017-01-02 13:16:32 +0100
commit0aae34fa314d7dedfe756ab81787df7944de0df6 (patch)
tree6f7be04312b6e85f8f3af2b794c55273967c857c /drivers/hid/intel-ish-hid/ishtp-hid.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadlinux-0aae34fa314d7dedfe756ab81787df7944de0df6.tar.xz
linux-0aae34fa314d7dedfe756ab81787df7944de0df6.zip
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>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp-hid.c')
0 files changed, 0 insertions, 0 deletions