]> www.infradead.org Git - linux.git/commitdiff
tools/virtio:Fix the wrong format specifier
authorZhu Jun <zhujun2@cmss.chinamobile.com>
Wed, 24 Jul 2024 07:41:08 +0000 (00:41 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Sep 2024 06:51:48 +0000 (02:51 -0400)
The unsigned int should use "%u" instead of "%d".

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Message-Id: <20240724074108.9530-1-zhujun2@cmss.chinamobile.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
tools/virtio/ringtest/main.c

index 5a18b2301a63cb71bad5221a1abb39cac9bc9599..e471d8e7cfaa2c66785c61be56392f664f309f86 100644 (file)
@@ -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]"