lkml.org 
[lkml]   [2014]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 02/15] cpufreq: fix decimal printf format specifiers prefixed with 0x
Date
On Tuesday, August 05, 2014 09:41:48 PM Hans Wennborg wrote:
> The prefix suggests the number should be printed in hex, so use
> the %x specifier to do that.
>
> Found by using regex suggested by Joe Perches.
>
> Signed-off-by: Hans Wennborg <hans@hanshq.net>

This triggers a build warning related to the formats. Care to fix up?

> ---
> drivers/cpufreq/speedstep-smi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/cpufreq/speedstep-smi.c b/drivers/cpufreq/speedstep-smi.c
> index 8635eec..fda9beb 100644
> --- a/drivers/cpufreq/speedstep-smi.c
> +++ b/drivers/cpufreq/speedstep-smi.c
> @@ -324,8 +324,8 @@ static int __init speedstep_init(void)
> return -ENODEV;
> }
>
> - pr_debug("signature:0x%.8ulx, command:0x%.8ulx, "
> - "event:0x%.8ulx, perf_level:0x%.8ulx.\n",
> + pr_debug("signature:0x%.8lx, command:0x%.8lx, "
> + "event:0x%.8lx, perf_level:0x%.8lx.\n",
> ist_info.signature, ist_info.command,
> ist_info.event, ist_info.perf_level);
>
>

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.


\
 
 \ /
  Last update: 2014-08-06 22:21    [W:0.037 / U:1.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site