lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0iC7hs7jEdm0q3wnFycEr-WAZSKhiYkwPwGgkGDew3ZEw@mail.gmail.com>
Date:   Mon, 12 Oct 2020 12:34:16 +0200
From:   "Rafael J. Wysocki" <rafael@...nel.org>
To:     Viresh Kumar <viresh.kumar@...aro.org>
Cc:     Rafael Wysocki <rjw@...ysocki.net>,
        Linux PM <linux-pm@...r.kernel.org>,
        Vincent Guittot <vincent.guittot@...aro.org>,
        kernel test robot <lkp@...el.com>,
        "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpufreq: stats: Fix string format specifier mismatch

On Mon, Oct 12, 2020 at 6:50 AM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> Fix following warning:
>
> drivers/cpufreq/cpufreq_stats.c:63:10: warning: %d in format string (no.
> 1) requires 'int' but the argument type is 'unsigned int'
>
> Fixes: 40c3bd4cfa6f ("cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()")
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
> ---
>  drivers/cpufreq/cpufreq_stats.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
> index 1b1389face85..6cd5c8ab5d49 100644
> --- a/drivers/cpufreq/cpufreq_stats.c
> +++ b/drivers/cpufreq/cpufreq_stats.c
> @@ -62,7 +62,7 @@ static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf)
>         if (READ_ONCE(stats->reset_pending))
>                 return sprintf(buf, "%d\n", 0);
>         else
> -               return sprintf(buf, "%d\n", stats->total_trans);
> +               return sprintf(buf, "%u\n", stats->total_trans);
>  }
>  cpufreq_freq_attr_ro(total_trans);
>
> --

Applied, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ