lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 331/639] scsi: qla2xxx: Fix a format specifier
    Date
    From: Bart Van Assche <bvanassche@acm.org>

    [ Upstream commit 19ce192cd718e02f880197c0983404ca48236807 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/scsi/qla2xxx/qla_target.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
    index e9545411ec5a9..bbbe1996620bf 100644
    --- a/drivers/scsi/qla2xxx/qla_target.c
    +++ b/drivers/scsi/qla2xxx/qla_target.c
    @@ -2290,7 +2290,7 @@ void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd)
    mcmd->orig_iocb.imm_ntfy.u.isp24.status_subcode ==
    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);
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-01-24 12:19    [W:2.455 / U:8.912 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site