]> git.pld-linux.org Git - packages/diag-ether.git/blame - diag-ether-alta-diag.patch
Fix build with -Werror=format-security
[packages/diag-ether.git] / diag-ether-alta-diag.patch
CommitLineData
a05bc8cf 1--- diag-ether/alta-diag.c.org 2004-02-22 21:23:41.000000000 +0000
2+++ diag-ether/alta-diag.c 2004-02-22 21:28:03.000000000 +0000
3@@ -36,38 +36,37 @@
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-
32- -D --debug
33- -v --verbose Report each action taken.
34- -V --version Emit version information.
35-
36- -A --advertise <speed|setting> (See the mii-diag manual page.)
37-";
38-
39+"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]\n"
40+"\n"
41+" Show the internal state of a network adapter.\n"
42+"\n"
43+" The common usage is\n"
44+" diag -aem\n"
45+"\n"
46+" Frequently used options are\n"
47+" -a --show_all_registers Print all registers.\n"
48+" -e --show-eeprom Dump EEPROM contents, \"-ee\" shows the details.\n"
49+" -m --show_mii Print the MII transceiver state\n"
50+" Using -mm monitors the link.\n"
51+" -f --force Perform operation, even on a running NIC.\n"
52+"\n"
53+" To operate on a single NIC, or one that hasn't been automatically found:\n"
54+" -# --card_num INDEX Operate on the specified card index.\n"
55+" -p --port-base IOADDR Assume an adapter at the specified I/O address.\n"
56+" -t --chip-type TYPE Specify adapter type with '-p', use '-1' to list.\n"
57+"\n"
58+" To change the persistent EEPROM settings\n"
59+" -G --parameters PARMS Set adapter-specific parameters.\n"
60+" -H --new-hwaddr 01:23:45:67:ab:cd\n"
61+" Set a new hardware station address. Typically diabled,\n"
62+" -w --write-EEPROM Actually write the new settings into the EEPROM.\n"
63+"\n"
64+" -D --debug\n"
65+" -v --verbose Report each action taken.\n"
66+" -V --version Emit version information.\n"
67+"\n"
68+" -A --advertise <speed|setting> (See the mii-diag manual page.)\n"
69+"\n";
70 #if ! defined(__OPTIMIZE__)
71 #warning You must compile this program with the correct options!
72 #warning See the last lines of the source file.
73@@ -84,7 +83,7 @@
74
75 /* The following are required only with unaligned field accesses. */
76 #include <asm/types.h>
77-#include <asm/unaligned.h>
78+// #include <asm/unaligned.h>
79
80 #if defined(__linux__) && __GNU_LIBRARY__ == 1
81 #include <asm/io.h> /* Newer libraries use <sys/io.h> instead. */
This page took 0.151219 seconds and 4 git commands to generate.