scsi: qla2xxx: Simplify qlt_lport_dump()
Simplify the implementation of this function by using the %phC format specifier instead of using explicit for-loops. Cc: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Tested-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
9c17c3b1e0
commit
09434912ed
|
@ -6497,22 +6497,10 @@ void qlt_remove_target_resources(struct qla_hw_data *ha)
|
|||
static void qlt_lport_dump(struct scsi_qla_host *vha, u64 wwpn,
|
||||
unsigned char *b)
|
||||
{
|
||||
int i;
|
||||
|
||||
pr_debug("qla2xxx HW vha->node_name: ");
|
||||
for (i = 0; i < WWN_SIZE; i++)
|
||||
pr_debug("%02x ", vha->node_name[i]);
|
||||
pr_debug("\n");
|
||||
pr_debug("qla2xxx HW vha->port_name: ");
|
||||
for (i = 0; i < WWN_SIZE; i++)
|
||||
pr_debug("%02x ", vha->port_name[i]);
|
||||
pr_debug("\n");
|
||||
|
||||
pr_debug("qla2xxx passed configfs WWPN: ");
|
||||
pr_debug("qla2xxx HW vha->node_name: %8phC\n", vha->node_name);
|
||||
pr_debug("qla2xxx HW vha->port_name: %8phC\n", vha->port_name);
|
||||
put_unaligned_be64(wwpn, b);
|
||||
for (i = 0; i < WWN_SIZE; i++)
|
||||
pr_debug("%02x ", b[i]);
|
||||
pr_debug("\n");
|
||||
pr_debug("qla2xxx passed configfs WWPN: %8phC\n", b);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue