scsi: qla2xxx: Fix a format specifier
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:11 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:48 +0000 (17:24 -0400)
Since mcmd->sess->port_name is eight bytes long, use %8phC to format that
port name instead of %phC.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery") # v4.11.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c

index 67bf9a8a97570afc942c1dcf5ea8af0475a7201a..bb16280a8d72c56c54f5c602775c91e03e77d878 100644 (file)
@@ -2391,7 +2391,7 @@ void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd)
                case ELS_PRLO:
                case ELS_TPRLO:
                        ql_dbg(ql_dbg_disc, vha, 0x2106,
-                           "TM response logo %phC status %#x state %#x",
+                           "TM response logo %8phC status %#x state %#x",
                            mcmd->sess->port_name, mcmd->fc_tm_rsp,
                            mcmd->flags);
                        qlt_schedule_sess_for_deletion(mcmd->sess);