[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54DD86ED.6010500@roeck-us.net>
Date: Thu, 12 Feb 2015 21:09:01 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Rasmus Villemoes <linux@...musvillemoes.dk>,
Jean Delvare <jdelvare@...e.de>
CC: lm-sensors@...sensors.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] hwmon: (ibmpex) Allow format string checking
On 02/12/2015 06:15 AM, Rasmus Villemoes wrote:
> The only difference between the three power_sensor_name_templates is
> whether there is a suffix of "", "_lowest" or "_highest". We might as
> well pull those into an array and use a literal format string,
> allowing gcc to do type checking of the arguments to
> sprintf. Incidentially, the same three suffixes are used in the
> temp_sensor_name_templates case, so we end up eliminating one static
> array.
>
> Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk>
Applied to -next after fixing 'line over 80 characters' checkpatch warning.
Thanks,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists