From patchwork Fri Jan 24 09:29:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233191 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FEF4C2D0DB for ; Fri, 24 Jan 2020 09:55:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DDAEF20718 for ; Fri, 24 Jan 2020 09:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859741; bh=0nP3cWKO/WEmZ1SNhRfG5YujXVlnGbBS7WJQPo+lyw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=f/9VNlguowUjbyiwtHypV5dtywr1CFU/S+QRfTmZDV7i0LqXS4dOxf7/xYyEQcXhF huPXCnue3BKDQfS8FVz0FVzlfoSz8O0ykXH/t3W43NnPaj8Mz9ejk0ta2KM6Lq0kqN ld7jA9kvJPV4sBz0sxRtUcXDmS0yq+cLxCZiXzFw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732937AbgAXJz0 (ORCPT ); Fri, 24 Jan 2020 04:55:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:58608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388445AbgAXJz0 (ORCPT ); Fri, 24 Jan 2020 04:55:26 -0500 Received: from localhost (unknown [145.15.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2EAA8206D5; Fri, 24 Jan 2020 09:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859725; bh=0nP3cWKO/WEmZ1SNhRfG5YujXVlnGbBS7WJQPo+lyw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j/8cd+IlGLnUFU0BL8qoH7h01oTerAiY4ADCIiwBoaGQqp/hk+Xuhh4rpOtliy0Qt wtu5CyLQhu8FHGSHogCDgBnqKsl9uokOJVoabfm7TnBAhAVKmgdtVzS5lTQgXltKNP iTACX1UAXJ3NqEt/vr03e2gguTVg3RXxCuMtPaxM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Giridhar Malavali , Bart Van Assche , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 180/343] scsi: qla2xxx: Fix a format specifier Date: Fri, 24 Jan 2020 10:29:58 +0100 Message-Id: <20200124092943.664950338@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124092919.490687572@linuxfoundation.org> References: <20200124092919.490687572@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Bart Van Assche [ 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 Cc: Giridhar Malavali Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery") # v4.11. Signed-off-by: Bart Van Assche Acked-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- 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 55227d20496a0..1000422ef4f8a 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -2179,7 +2179,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_lock(mcmd->sess);