blob: 4dcecf5032780b893528141a8b47bfc610dd7a20 [file] [log] [blame]
From aa7d9f1ab642e91028a4137c83fa1e0c45f5afc0 Mon Sep 17 00:00:00 2001
From: Alan Mikhak <>
Date: Thu, 23 May 2019 14:18:01 -0700
Subject: [PATCH] tools: PCI: Fix compiler warning in pcitest
commit 81cb4203a5fec7d3f8cf4f145e8e7077b2dcbc78 upstream.
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 <>
Signed-off-by: Lorenzo Pieralisi <>
Reviewed-by: Paul Walmsley <>
Signed-off-by: Paul Gortmaker <>
diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c
index dd834c06609e..32b7c6f9043d 100644
--- a/tools/pci/pcitest.c
+++ b/tools/pci/pcitest.c
@@ -213,7 +213,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",
return -EINVAL;