diff options
-rw-r--r-- | ethtool.c | 6 | ||||
-rw-r--r-- | marvell.c | 6 | ||||
-rw-r--r-- | smsc911x.c | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -153,7 +153,7 @@ static struct option { " [ ufo on|off ]\n" " [ gso on|off ]\n" }, { "-i", "--driver", MODE_GDRV, "Show driver information" }, - { "-d", "--register-dump", MODE_GREGS, "Do a register dump", + { "-d", "--register-dump", MODE_GREGS, "Do a register dump", " [ raw on|off ]\n" " [ file FILENAME ]\n" }, { "-e", "--eeprom-dump", MODE_GEEPROM, "Do a EEPROM dump", @@ -1035,7 +1035,7 @@ static int dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) gregs_dump_file, strerror(errno)); return -1; } - + regs = realloc(regs, sizeof(*regs) + st.st_size); regs->len = st.st_size; fread(regs->data, regs->len, 1, f); @@ -2065,7 +2065,7 @@ static int do_gstats(int fd, struct ifreq *ifr) fprintf(stdout, "NIC statistics:\n"); for (i = 0; i < n_stats; i++) { fprintf(stdout, " %.*s: %llu\n", - ETH_GSTRING_LEN, + ETH_GSTRING_LEN, &strings->data[i * ETH_GSTRING_LEN], stats->data[i]); } @@ -164,7 +164,7 @@ static void dump_mac(const u8 *r) dump_addr(3, r + 0x110); printf("\n"); - printf("Connector type 0x%02X (%c)\n", + printf("Connector type 0x%02X (%c)\n", r[0x118], (char)r[0x118]); printf("PMD type 0x%02X (%c)\n", r[0x119], (char)r[0x119]); @@ -189,9 +189,9 @@ static void dump_mac(const u8 *r) printf(" (rev %d)\n", (r[0x11a] & 0xf0) >> 4); printf("Ram Buffer 0x%02X\n", r[0x11c]); - + } - + static void dump_gma(const char *name, const u8 *r) { int i; @@ -84,7 +84,7 @@ int smsc911x_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) fprintf(stdout, "index 30, Interrupt Mask Register = 0x%04X\n",*smsc_reg++); fprintf(stdout, "index 31, PHY Special Control/Status Register = 0x%04X\n",*smsc_reg++); fprintf(stdout, "\n"); - + return 0; } |