Skip to content

Commit

Permalink
tools: PCI: Fix compiler warning in pcitest
Browse files Browse the repository at this point in the history
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: fbca0b2 ("tools: PCI: Add 'h' in optstring of getopt()")
Signed-off-by: Alan Mikhak <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Paul Walmsley <[email protected]>
  • Loading branch information
alanmikhak-at-sifive authored and Lorenzo Pieralisi committed May 29, 2019
1 parent 8a5e0af commit 81cb420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pci/pcitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81cb420

Please sign in to comment.