tools: PCI: Fix compiler warning in pcitest
authorAlan Mikhak <alan.mikhak@sifive.com>
Thu, 23 May 2019 21:18:01 +0000 (14:18 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 29 May 2019 16:44:34 +0000 (17:44 +0100)
Fix the following compiler warning in pcitest:

pcitest.c: In function main:
pcitest.c:214:4: warning: too many arguments for
format [-Wformat-extra-args]
    "usage: %s [options]\n"

Fixes: fbca0b284bd0 ("tools: PCI: Add 'h' in optstring of getopt()")
Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
tools/pci/pcitest.c

index 6dce894667f69eb2df5805250d3285661f7e5c07..6f1303104d84168cd82337411404cbc7113fc86d 100644 (file)
@@ -223,7 +223,7 @@ usage:
                        "\t-r                   Read buffer test\n"
                        "\t-w                   Write buffer test\n"
                        "\t-c                   Copy buffer test\n"
-                       "\t-s <size>            Size of buffer {default: 100KB}\n",
+                       "\t-s <size>            Size of buffer {default: 100KB}\n"
                        "\t-h                   Print this help message\n",
                        argv[0]);
                return -EINVAL;