Patch from Gal Rosen <galr@storwize.com>:

Mailbox is 16 bits, and the shift should be of 2 bytes (16 bits) not 2 bits, and 1 byte not 1 bit



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@492 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-08-28 15:48:35 +00:00
parent 9cf822569c
commit 2072470745

View File

@@ -1970,9 +1970,9 @@ static void q2t_async_event(uint16_t code, scsi_qla_host_t *ha, uint16_t *mailbo
#endif
break;
case MBA_RSCN_UPDATE:
TRACE_MGMT_DBG("RSCN Update (%x) N_Port %#06x (fmt %x)",
code, ((mailbox[1]&0xF)<<2)|le16_to_cpu(mailbox[2]),
(mailbox[1]&0xF0)>>1);
TRACE_MGMT_DBG("RSCN Update (%x) N_Port %#06x (fmt %x)", code,
((mailbox[1] & 0xFF) << 16) | le16_to_cpu(mailbox[2]),
(mailbox[1] & 0xFF00) >> 8);
break;
case MBA_PORT_UPDATE: /* Port database update occurred */