ACK: [PATCH] cpu: cpufreq: use correct printf format specifiers
Alex Hung
alex.hung at canonical.com
Tue Jan 14 02:12:21 UTC 2014
On 01/09/2014 11:30 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/cpu/cpufreq/cpufreq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/cpu/cpufreq/cpufreq.c b/src/cpu/cpufreq/cpufreq.c
> index ae0986a..c2b9ef8 100644
> --- a/src/cpu/cpufreq/cpufreq.c
> +++ b/src/cpu/cpufreq/cpufreq.c
> @@ -199,11 +199,11 @@ static char *HzToHuman(const uint32_t hz)
> (Hz+50000.0) / 1000000);
> return buffer;
> } else if (Hz > 1000) {
> - snprintf(buffer, sizeof(buffer), "%lli MHz",
> + snprintf(buffer, sizeof(buffer), "%llu MHz",
> (Hz+500) / 1000);
> return buffer;
> } else {
> - snprintf(buffer, sizeof(buffer), "%lli", Hz);
> + snprintf(buffer, sizeof(buffer), "%llu", Hz);
> return buffer;
> }
> }
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list