Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (21 commits) mac80211: check interface is down before type change cfg80211: fix NULL ptr deref libertas if_usb: Fix crash on 64-bit machines mac80211: fix reason code output endianness mac80211: fix addba timer ath9k: fix misplaced semicolon on rate control b43: Fix DMA TX bounce buffer copying mac80211: fix BSS leak rt73usb.c : more ids ipw2200: fix oops on missing firmware gre: Fix dev_addr clobbering for gretap sky2: set carrier off in probe net: fix sk_forward_alloc corruption pcnet_cs: add cis of PreMax PE-200 ethernet pcmcia card r8169: Fix card drop incoming VLAN tagged MTU byte large jumbo frames ibmtr: possible Read buffer overflow? net: Fix RPF to work with policy routing net: fix kmemcheck annotations e1000e: rework disable K1 at 1000Mbps for 82577/82578 e1000e: config PHY via software after resets ...
This commit is contained in:
@@ -1144,9 +1144,16 @@ static void dir_open_adapter (struct net_device *dev)
|
||||
} else {
|
||||
char **prphase = printphase;
|
||||
char **prerror = printerror;
|
||||
int pnr = err / 16 - 1;
|
||||
int enr = err % 16 - 1;
|
||||
DPRINTK("TR Adapter misc open failure, error code = ");
|
||||
printk("0x%x, Phase: %s, Error: %s\n",
|
||||
err, prphase[err/16 -1], prerror[err%16 -1]);
|
||||
if (pnr < 0 || pnr >= ARRAY_SIZE(printphase) ||
|
||||
enr < 0 ||
|
||||
enr >= ARRAY_SIZE(printerror))
|
||||
printk("0x%x, invalid Phase/Error.", err);
|
||||
else
|
||||
printk("0x%x, Phase: %s, Error: %s\n", err,
|
||||
prphase[pnr], prerror[enr]);
|
||||
printk(" retrying after %ds delay...\n",
|
||||
TR_RETRY_INTERVAL/HZ);
|
||||
}
|
||||
|
Reference in New Issue
Block a user