]> git.pld-linux.org Git - packages/diag-ether.git/blob - diag-ether-winbond-diag.patch
Fix build with -Werror=format-security
[packages/diag-ether.git] / diag-ether-winbond-diag.patch
1 --- diag-ether/winbond-diag.c.org       2004-02-22 22:11:32.000000000 +0000
2 +++ diag-ether/winbond-diag.c   2004-02-22 22:12:29.000000000 +0000
3 @@ -36,41 +36,41 @@
4  "  For details and other options see http://www.scyld.com/diag/index.html\n";
5  
6  static const char long_usage_msg[] =
7 -"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]
8 -
9 -   Show the internal state of a network adapter.
10 -
11 -   The common usage is
12 -      diag -aem
13 -
14 - Frequently used options are
15 -   -a  --show_all_registers    Print all registers.
16 -   -e  --show-eeprom   Dump EEPROM contents, \"-ee\" shows the details.
17 -   -m  --show_mii              Print the MII transceiver state
18 -                                       Using -mm monitors the link.
19 -   -f  --force         Perform operation, even on a running NIC.
20 -
21 - To operate on a single NIC, or one that hasn't been automatically found:
22 -   -#  --card_num      INDEX   Operate on the specified card index.
23 -   -p  --port-base     IOADDR  Assume an adapter at the specified I/O address.
24 -   -t  --chip-type     TYPE    Specify adapter type with '-p', use '-1' to list.
25 -
26 - To change the persistent EEPROM settings
27 -   -G  --parameters PARMS      Set adapter-specific parameters.
28 -   -H  --new-hwaddr 01:23:45:67:ab:cd
29 -                       Set a new hardware station address.  Typically diabled, 
30 -   -w  --write-EEPROM   Actually write the new settings into the EEPROM.
31 - To read and write the boot BIOS extension Flash ROM
32 -   -B       Show the first few bytes of the ROM
33 -   -L FILE  Load the Flash from FILE.
34 -   -S FILE  Store the Flash image to FILE.
35 -
36 -   -D  --debug
37 -   -v  --verbose       Report each action taken.
38 -   -V  --version       Emit version information.
39 -
40 -   -A  --advertise <speed|setting>  (See the mii-diag manual page.)
41 -";
42 +"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]\n"
43 +"\n"
44 +"   Show the internal state of a network adapter.\n"
45 +"\n"
46 +"   The common usage is\n"
47 +"      diag -aem\n"
48 +"\n"
49 +" Frequently used options are\n"
50 +"   -a  --show_all_registers   Print all registers.\n"
51 +"   -e  --show-eeprom  Dump EEPROM contents, \"-ee\" shows the details.\n"
52 +"   -m  --show_mii             Print the MII transceiver state\n"
53 +"                                      Using -mm monitors the link.\n"
54 +"   -f  --force                Perform operation, even on a running NIC.\n"
55 +"\n"
56 +" To operate on a single NIC, or one that hasn't been automatically found:\n"
57 +"   -#  --card_num     INDEX   Operate on the specified card index.\n"
58 +"   -p  --port-base    IOADDR  Assume an adapter at the specified I/O address.\n"
59 +"   -t  --chip-type    TYPE    Specify adapter type with '-p', use '-1' to list.\n"
60 +"\n"
61 +" To change the persistent EEPROM settings\n"
62 +"   -G  --parameters PARMS     Set adapter-specific parameters.\n"
63 +"   -H  --new-hwaddr 01:23:45:67:ab:cd\n"
64 +"                      Set a new hardware station address.  Typically diabled, \n"
65 +"   -w  --write-EEPROM  Actually write the new settings into the EEPROM.\n"
66 +" To read and write the boot BIOS extension Flash ROM\n"
67 +"   -B       Show the first few bytes of the ROM\n"
68 +"   -L FILE  Load the Flash from FILE.\n"
69 +"   -S FILE  Store the Flash image to FILE.\n"
70 +"\n"
71 +"   -D  --debug\n"
72 +"   -v  --verbose      Report each action taken.\n"
73 +"   -V  --version      Emit version information.\n"
74 +"\n"
75 +"   -A  --advertise <speed|setting>  (See the mii-diag manual page.)\n"
76 +"\n";
77  
78  #if ! defined(__OPTIMIZE__)
79  #warning  You must compile this program with the correct options!
This page took 0.030649 seconds and 3 git commands to generate.