[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d0cd4629-9f12-4251-8dd5-274c093476b3@ghiti.fr>
Date: Fri, 15 Dec 2023 14:52:33 +0100
From: Alexandre Ghiti <alex@...ti.fr>
To: Christoph Muellner <christoph.muellner@...ll.eu>,
linux-riscv@...ts.infradead.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>, Albert Ou <aou@...s.berkeley.edu>,
Shuah Khan <shuah@...nel.org>
Cc: Philipp Tomsich <philipp.tomsich@...ll.eu>,
Andrew Jones <ajones@...tanamicro.com>, Evan Green <evan@...osinc.com>,
Xiao Wang <xiao.w.wang@...el.com>, Alexandre Ghiti <alexghiti@...osinc.com>,
Andy Chiu <andy.chiu@...ive.com>, Björn Töpel
<bjorn@...osinc.com>, Charlie Jenkins <charlie@...osinc.com>
Subject: Re: [PATCH 1/5] tools: selftests: riscv: Fix compile warnings in
hwprobe
On 23/11/2023 19:58, Christoph Muellner wrote:
> From: Christoph Müllner <christoph.muellner@...ll.eu>
>
> GCC prints a couple of format string warnings when compiling
> the hwprobe test. Let's follow the recommendation in
> Documentation/printk-formats.txt to fix these warnings.
>
> Signed-off-by: Christoph Müllner <christoph.muellner@...ll.eu>
> ---
> tools/testing/selftests/riscv/hwprobe/hwprobe.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/riscv/hwprobe/hwprobe.c b/tools/testing/selftests/riscv/hwprobe/hwprobe.c
> index c474891df307..abb825811c70 100644
> --- a/tools/testing/selftests/riscv/hwprobe/hwprobe.c
> +++ b/tools/testing/selftests/riscv/hwprobe/hwprobe.c
> @@ -29,7 +29,7 @@ int main(int argc, char **argv)
> /* Fail if the kernel claims not to recognize a base key. */
> if ((i < 4) && (pairs[i].key != i))
> ksft_exit_fail_msg("Failed to recognize base key: key != i, "
> - "key=%ld, i=%ld\n", pairs[i].key, i);
> + "key=%lld, i=%ld\n", pairs[i].key, i);
>
> if (pairs[i].key != RISCV_HWPROBE_KEY_BASE_BEHAVIOR)
> continue;
> @@ -37,7 +37,7 @@ int main(int argc, char **argv)
> if (pairs[i].value & RISCV_HWPROBE_BASE_BEHAVIOR_IMA)
> continue;
>
> - ksft_exit_fail_msg("Unexpected pair: (%ld, %ld)\n", pairs[i].key, pairs[i].value);
> + ksft_exit_fail_msg("Unexpected pair: (%lld, %llu)\n", pairs[i].key, pairs[i].value);
> }
>
> out = riscv_hwprobe(pairs, 8, 0, 0, 0);
You can add:
Reviewed-by: Alexandre Ghiti <alexghiti@...osinc.com>
Thanks!
Alex
Powered by blists - more mailing lists