]>
Commit | Line | Data |
---|---|---|
a05bc8cf | 1 | --- diag-ether/pci-config.c.org 2004-02-22 22:13:59.000000000 +0000 |
2 | +++ diag-ether/pci-config.c 2004-02-22 22:15:14.000000000 +0000 | |
3 | @@ -28,33 +28,32 @@ | |
4 | static char *usage_msg = | |
5 | "Usage: pci-config [-aDfSvVW] [-# <device_index>]\n"; | |
6 | ||
7 | -static char *long_usage_msg =" | |
8 | - | |
9 | - This program shows the contents of PCI configuration space. | |
10 | - It reads the hardware registers, and thus must be run as 'root'. | |
11 | - | |
12 | - Running this program with no options shows the installed PCI devices. | |
13 | - Each line is prefixed by its index which may be used with -#<index> | |
14 | - e.g. \"pci-config -#3\" to specify the device to operate on. | |
15 | - | |
16 | - Commonly use options are | |
17 | - -# <device-index> Operate only on DEVICE-INDEX e.g -#3 | |
18 | - | |
19 | - The operations on the selected device are | |
20 | - -a --show-addresses Show PCI address registers. | |
21 | - -S --sleep Put device to sleep (ACPI D3 state) | |
22 | - -W --wake Wake a sleeping device (ACPI D0 state) | |
23 | - | |
24 | - Less commonly used options are | |
25 | - -B <bus> --bus <bus> Show only devices on BUS. | |
26 | - -A <addr> --set-addresses Set PCI address register 1 to the ADDR. | |
27 | - -D --debug Show details of operations | |
28 | - -f --force Override checks and perform the operation | |
29 | - -u --usage Show this long usage message | |
30 | - -v --verbose Verbose mode | |
31 | - -V --version Display this program's version information | |
32 | - | |
33 | -"; | |
34 | +static char *long_usage_msg = | |
35 | +"\n" | |
36 | +" This program shows the contents of PCI configuration space.\n" | |
37 | +" It reads the hardware registers, and thus must be run as 'root'.\n" | |
38 | +"\n" | |
39 | +" Running this program with no options shows the installed PCI devices.\n" | |
40 | +" Each line is prefixed by its index which may be used with -#<index>\n" | |
41 | +" e.g. \"pci-config -#3\" to specify the device to operate on.\n" | |
42 | +"\n" | |
43 | +" Commonly use options are\n" | |
44 | +" -# <device-index> Operate only on DEVICE-INDEX e.g -#3\n" | |
45 | +"\n" | |
46 | +" The operations on the selected device are\n" | |
47 | +" -a --show-addresses Show PCI address registers.\n" | |
48 | +" -S --sleep Put device to sleep (ACPI D3 state)\n" | |
49 | +" -W --wake Wake a sleeping device (ACPI D0 state)\n" | |
50 | +"\n" | |
51 | +" Less commonly used options are\n" | |
52 | +" -B <bus> --bus <bus> Show only devices on BUS.\n" | |
53 | +" -A <addr> --set-addresses Set PCI address register 1 to the ADDR.\n" | |
54 | +" -D --debug Show details of operations\n" | |
55 | +" -f --force Override checks and perform the operation\n" | |
56 | +" -u --usage Show this long usage message\n" | |
57 | +" -v --verbose Verbose mode\n" | |
58 | +" -V --version Display this program's version information\n" | |
59 | +"\n"; | |
60 | ||
61 | #include <unistd.h> | |
62 | #include <stdio.h> |