[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1558642464-9946-3-git-send-email-alan.mikhak@sifive.com>
Date: Thu, 23 May 2019 13:14:24 -0700
From: Alan Mikhak <alan.mikhak@...ive.com>
To: linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
kishon@...com, lorenzo.pieralisi@....com,
linux-riscv@...ts.infradead.org, palmer@...ive.com,
paul.walmsley@...ive.com
Cc: Alan Mikhak <alan.mikhak@...ive.com>
Subject: [PATCH 2/2] tools: PCI: Fix compiler warning in pcitest
From: Alan Mikhak <alan.mikhak@...ive.com>
Fixes: fbca0b284bd0 ("tools: PCI: Add 'h' in optstring of getopt()")
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"
Signed-off-by: Alan Mikhak <alan.mikhak@...ive.com>
Reviewed-by: Paul Walmsley <paul.walmsley@...ive.com>
---
tools/pci/pcitest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ int main(int argc, char **argv)
"\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;
--
2.7.4
Powered by blists - more mailing lists