qla2xxx: print the right array elements in qlt_async_event
authorAlan Cox <alan@linux.intel.com>
Wed, 4 Jul 2012 15:35:35 +0000 (16:35 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 6 Jul 2012 20:09:23 +0000 (13:09 -0700)
commit4f1d0f1971ba37010603a3a5c763f398b888d2f4
tree43dccd28d2930baadbc0bdf0d4fcddedc4c0c0af
parent863555be0c81558b1af277addcf68acb8f778860
qla2xxx: print the right array elements in qlt_async_event

Based upon Alan's patch from Coverity scan id 793583, these debug
messages in qlt_async_event() should be starting from byte 0, which is
always the Asynchronous Event Status Code from the parent switch statement.

Also, rename reason_code -> login_code following the language used in
2500 FW spec for Port Database Changed (0x8014) -> Port Database Changed
Event Mailbox Register for mailbox[2].

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c