* [PATCH] kbuild: Fix the wrong format specifier
@ 2024-12-02 4:11 zhangjiao2
2024-12-02 10:00 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: zhangjiao2 @ 2024-12-02 4:11 UTC (permalink / raw)
To: jpoimboe; +Cc: peterz, linux-kernel, zhang jiao
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
The format specifier of "unsigned long" in printf()
should be "%lu", not "%ld".
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
tools/objtool/check.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 4ce176ad411f..9c36bb519cf3 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -4934,10 +4934,10 @@ int check(struct objtool_file *file)
disas_warned_funcs(file);
if (opts.stats) {
- printf("nr_insns_visited: %ld\n", nr_insns_visited);
- printf("nr_cfi: %ld\n", nr_cfi);
- printf("nr_cfi_reused: %ld\n", nr_cfi_reused);
- printf("nr_cfi_cache: %ld\n", nr_cfi_cache);
+ printf("nr_insns_visited: %lu\n", nr_insns_visited);
+ printf("nr_cfi: %lu\n", nr_cfi);
+ printf("nr_cfi_reused: %lu\n", nr_cfi_reused);
+ printf("nr_cfi_cache: %lu\n", nr_cfi_cache);
}
out:
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] kbuild: Fix the wrong format specifier
2024-12-02 4:11 [PATCH] kbuild: Fix the wrong format specifier zhangjiao2
@ 2024-12-02 10:00 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2024-12-02 10:00 UTC (permalink / raw)
To: zhangjiao2; +Cc: jpoimboe, linux-kernel
On Mon, Dec 02, 2024 at 12:11:26PM +0800, zhangjiao2 wrote:
> From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
>
> The format specifier of "unsigned long" in printf()
> should be "%lu", not "%ld".
Your subject is wrong, also, who cares? Why did you write this patch?
> Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
> ---
> tools/objtool/check.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tools/objtool/check.c b/tools/objtool/check.c
> index 4ce176ad411f..9c36bb519cf3 100644
> --- a/tools/objtool/check.c
> +++ b/tools/objtool/check.c
> @@ -4934,10 +4934,10 @@ int check(struct objtool_file *file)
> disas_warned_funcs(file);
>
> if (opts.stats) {
> - printf("nr_insns_visited: %ld\n", nr_insns_visited);
> - printf("nr_cfi: %ld\n", nr_cfi);
> - printf("nr_cfi_reused: %ld\n", nr_cfi_reused);
> - printf("nr_cfi_cache: %ld\n", nr_cfi_cache);
> + printf("nr_insns_visited: %lu\n", nr_insns_visited);
> + printf("nr_cfi: %lu\n", nr_cfi);
> + printf("nr_cfi_reused: %lu\n", nr_cfi_reused);
> + printf("nr_cfi_cache: %lu\n", nr_cfi_cache);
> }
>
> out:
> --
> 2.33.0
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-02 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 4:11 [PATCH] kbuild: Fix the wrong format specifier zhangjiao2
2024-12-02 10:00 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox