forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
8bf2805918
commit
dae3a5112d
@ -4530,7 +4530,7 @@ static const char *sky2_name(u8 chipid, char *buf, int sz)
|
||||
"Optima", /* 0xbc */
|
||||
};
|
||||
|
||||
if (chipid >= CHIP_ID_YUKON_XL && chipid < CHIP_ID_YUKON_OPT)
|
||||
if (chipid >= CHIP_ID_YUKON_XL && chipid <= CHIP_ID_YUKON_OPT)
|
||||
strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz);
|
||||
else
|
||||
snprintf(buf, sz, "(chip %#x)", chipid);
|
||||
|
Loading…
Reference in New Issue
Block a user