| From aa7d9f1ab642e91028a4137c83fa1e0c45f5afc0 Mon Sep 17 00:00:00 2001 |
| From: Alan Mikhak <alan.mikhak@sifive.com> |
| 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 <alan.mikhak@sifive.com> |
| Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> |
| Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| 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", |
| argv[0]); |
| return -EINVAL; |
| -- |
| 2.27.0 |
| |