diff options
author | stephen hemminger <shemminger@vyatta.com> | 2009-12-14 03:33:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-15 01:07:15 -0500 |
commit | dae3a5112d258764cad9e48439ca7dd05c2edca1 (patch) | |
tree | 03df08947b7f1b83e68bd8c7cb9a207e1da545cd /drivers/net/sky2.c | |
parent | 8bf2805918e9ee3ccdc18590fec0416a01d635c9 (diff) |
sky2: print Optima chip name
Off by one in name lookup makes Optima display as (chip 0xbc)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 89a05d674ddc..9431f642beb0 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -4530,7 +4530,7 @@ static const char *sky2_name(u8 chipid, char *buf, int sz) | |||
4530 | "Optima", /* 0xbc */ | 4530 | "Optima", /* 0xbc */ |
4531 | }; | 4531 | }; |
4532 | 4532 | ||
4533 | if (chipid >= CHIP_ID_YUKON_XL && chipid < CHIP_ID_YUKON_OPT) | 4533 | if (chipid >= CHIP_ID_YUKON_XL && chipid <= CHIP_ID_YUKON_OPT) |
4534 | strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz); | 4534 | strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz); |
4535 | else | 4535 | else |
4536 | snprintf(buf, sz, "(chip %#x)", chipid); | 4536 | snprintf(buf, sz, "(chip %#x)", chipid); |