Re: [PATCH] tools/virtio:Fix the wrong format specifier

From: Eugenio Perez Martin
Date: Wed Jul 24 2024 - 06:29:20 EST


On Wed, Jul 24, 2024 at 9:44 AM Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> The unsigned int should use "%u" instead of "%d".
>
> Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Eugenio Pérez <eperezma@xxxxxxxxxx>

Thanks!

> ---
> tools/virtio/ringtest/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/virtio/ringtest/main.c b/tools/virtio/ringtest/main.c
> index 5a18b2301a63..e471d8e7cfaa 100644
> --- a/tools/virtio/ringtest/main.c
> +++ b/tools/virtio/ringtest/main.c
> @@ -276,7 +276,7 @@ static void help(void)
> fprintf(stderr, "Usage: <test> [--help]"
> " [--host-affinity H]"
> " [--guest-affinity G]"
> - " [--ring-size R (default: %d)]"
> + " [--ring-size R (default: %u)]"
> " [--run-cycles C (default: %d)]"
> " [--batch b]"
> " [--outstanding o]"
> --
> 2.17.1
>
>
>