From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755495AbdABMRK (ORCPT ); Mon, 2 Jan 2017 07:17:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:42017 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbdABMRI (ORCPT ); Mon, 2 Jan 2017 07:17:08 -0500 Date: Mon, 2 Jan 2017 13:17:04 +0100 (CET) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Nicolas Iooss cc: Srinivas Pandruvada , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] HID: intel-ish-hid: add printf attribute to print_log() In-Reply-To: <20161222100910.6179-1-nicolas.iooss_linux@m4x.org> Message-ID: References: <20161222100910.6179-1-nicolas.iooss_linux@m4x.org> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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