summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-04-04 13:40:15 -0700
committerJeff Garzik <jeff@garzik.org>2007-04-05 04:07:27 -0400
commit9896cd5012e6c76cb5978da424888a06fa666ff4 (patch)
tree284289d12f2e7a71179b6299df9473d8ffc6a257
parentec45cbae2eefffa770f5cf5729a0b5410963b7b8 (diff)
downloadethtool-9896cd5012e6c76cb5978da424888a06fa666ff4.tar.gz
ethtool: marvell chip version decode fix
The chip revision wasn't being decoded properly. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--marvell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marvell.c b/marvell.c
index b17548e..1c9b043 100644
--- a/marvell.c
+++ b/marvell.c
@@ -183,7 +183,7 @@ static void dump_mac(const u8 *r)
case 0xb7: printf("Yukon-2 FE"); break;
}
- printf(" (rev %d)\n", r[0x11a] & 0xf);
+ printf(" (rev %d)\n", (r[0x11a] & 0xf0) >> 4);
printf("Ram Buffer 0x%02X\n", r[0x11c]);