diff options
author | Alan Mikhak <alan.mikhak@sifive.com> | 2019-05-23 14:18:01 -0700 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-05-29 17:44:34 +0100 |
commit | 81cb4203a5fec7d3f8cf4f145e8e7077b2dcbc78 (patch) | |
tree | fc2e979ca34106cc9f804c7f350b38b64e512e7b /tools/pci/pcitest.c | |
parent | 8a5e0af240e07dd3d4897eb8ff52aab757da7fab (diff) | |
download | lwn-81cb4203a5fec7d3f8cf4f145e8e7077b2dcbc78.tar.gz lwn-81cb4203a5fec7d3f8cf4f145e8e7077b2dcbc78.zip |
tools: PCI: Fix compiler warning in pcitest
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>
Diffstat (limited to 'tools/pci/pcitest.c')
-rw-r--r-- | tools/pci/pcitest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c index 6dce894667f6..6f1303104d84 100644 --- a/tools/pci/pcitest.c +++ b/tools/pci/pcitest.c @@ -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; |