[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.20.1701021316460.28985@cbobk.fhfr.pm>
Date: Mon, 2 Jan 2017 13:17:04 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: Nicolas Iooss <nicolas.iooss_linux@....org>
cc: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] HID: intel-ish-hid: add printf attribute to
print_log()
On Thu, 22 Dec 2016, Nicolas Iooss wrote:
> 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.
Both patches applied to for-4.11/intel-ish. Thanks,
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists