diff options
author | Martin Mares <mj@ucw.cz> | 2008-02-12 10:48:27 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2008-02-12 10:48:27 +0100 |
commit | 1b99a70412459626f8af87f7d2c0315f076edc4f (patch) | |
tree | 84210f95df1aaba0d75e4ea8c407c023b3182c22 /setpci.c | |
parent | f2b31663e67198f49fecb6e9239f529bf8892f3e (diff) | |
download | pciutils-1b99a70412459626f8af87f7d2c0315f076edc4f.tar.gz |
Tidy up help texts on usage.
Diffstat (limited to 'setpci.c')
-rw-r--r-- | setpci.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* * The PCI Utilities -- Manipulate PCI Configuration Registers * - * Copyright (c) 1998--2006 Martin Mares <mj@ucw.cz> + * Copyright (c) 1998--2008 Martin Mares <mj@ucw.cz> * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -12,6 +12,7 @@ #include <stdarg.h> #include <unistd.h> +#define PCIUTILS_SETPCI #include "pciutils.h" static int force; /* Don't complain if no devices match */ @@ -259,10 +260,16 @@ usage(char *msg, ...) } fprintf(stderr, "Usage: setpci [<options>] (<device>+ <reg>[=<values>]*)*\n" +"\n" +"General options:\n" "-f\t\tDon't complain if there's nothing to do\n" "-v\t\tBe verbose\n" "-D\t\tList changes, don't commit them\n" +"\n" +"PCI access options:\n" GENERIC_HELP +"\n" +"Setting commands:\n" "<device>:\t-s [[[<domain>]:][<bus>]:][<slot>][.[<func>]]\n" "\t|\t-d [<vendor>]:[<device>]\n" "<reg>:\t\t<number>[.(B|W|L)]\n" |