From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: liujing <liujing@cmss.chinamobile.com>
Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tools/power/x86/intel-speed-select: Fix the wrong format specifier
Date: Thu, 21 Nov 2024 08:49:01 -0800 [thread overview]
Message-ID: <56b6520093f5a0aca6738d2114c5ae08db2660fa.camel@linux.intel.com> (raw)
In-Reply-To: <20241121130028.6259-1-liujing@cmss.chinamobile.com>
On Thu, 2024-11-21 at 21:00 +0800, liujing wrote:
> Because clos_config->clos_min and clos_config->clos_max
> are unsigned int types, the output format should be %u.
>
> Signed-off-by: liujing <liujing@cmss.chinamobile.com>
You need to have for your tag:
Full Name <email address>
Thanks,
Srinivas
>
> diff --git a/tools/power/x86/intel-speed-select/isst-display.c
> b/tools/power/x86/intel-speed-select/isst-display.c
> index 07ebd08f3202..5ecf24bda6dd 100644
> --- a/tools/power/x86/intel-speed-select/isst-display.c
> +++ b/tools/power/x86/intel-speed-select/isst-display.c
> @@ -617,14 +617,14 @@ void isst_clos_display_information(struct
> isst_id *id, FILE *outf, int clos,
> format_and_print(outf, level + 2, header, value);
>
> snprintf(header, sizeof(header), "clos-min");
> - snprintf(value, sizeof(value), "%d MHz", clos_config-
> >clos_min * isst_get_disp_freq_multiplier());
> + snprintf(value, sizeof(value), "%u MHz", clos_config-
> >clos_min * isst_get_disp_freq_multiplier());
> format_and_print(outf, level + 2, header, value);
>
> snprintf(header, sizeof(header), "clos-max");
> if ((clos_config->clos_max *
> isst_get_disp_freq_multiplier()) == 25500)
> snprintf(value, sizeof(value), "Max Turbo
> frequency");
> else
> - snprintf(value, sizeof(value), "%d MHz",
> clos_config->clos_max * isst_get_disp_freq_multiplier());
> + snprintf(value, sizeof(value), "%u MHz",
> clos_config->clos_max * isst_get_disp_freq_multiplier());
> format_and_print(outf, level + 2, header, value);
>
> snprintf(header, sizeof(header), "clos-desired");
prev parent reply other threads:[~2024-11-21 16:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 13:00 [PATCH] tools/power/x86/intel-speed-select: Fix the wrong format specifier liujing
2024-11-21 16:49 ` srinivas pandruvada [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56b6520093f5a0aca6738d2114c5ae08db2660fa.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liujing@cmss.chinamobile.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox