Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3754367pxk; Tue, 8 Sep 2020 01:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX/gkxuHfogmL+v6eWANV6p1QGhzOJjf/k0qHZuC9/6GTCkVwpsDGxZNeEAjAN7gvHSfQ9 X-Received: by 2002:a50:da44:: with SMTP id a4mr26423274edk.36.1599553020738; Tue, 08 Sep 2020 01:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599553020; cv=none; d=google.com; s=arc-20160816; b=B7x86y4Tzi7wiv/qnlq8qYeNMMz1rHvHvUE1VS53floBkBfqk/y4tJ9G4V81NskMcs DiCw1iAoKdluywEy7BiV+AW8p+FFQSmlMlrT1z5WUtCGC7LjiejhtKnmeHXiotA7u57B tBSTGXqdbnj0ydoBQ4xC7z2VO93jXlg18HX7ThGziPNGwH7Y933CCYvOkNCUKOTU8ah0 2oi1YujQMMyM+PN7kYG7zdoB0WyE6+tO3/GBLpACSisZEWdlTkfQ+e6ynz6Y1LbpIoUg 7RUEc3SfATG3LWcPjUmCo72Pxu1prHJHCPprfus7+xi90maVELCQbYmgbLzVi3HR6g5F kXPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ExmwNxdZs0ronnMSwVcS4M+GFfycnsD1UiPzMmoUyZ8=; b=BsXiGmHnHM1FhDG4YhcY8wqeZoYO3zhvFkjoTAwhmerLtFGNUXKfOltdH/UhxZ9cmM VfTrcdoXwpbLePebGXnRBd+6zcWrT0kqGkPWb5HXy5H2fNsETvoCuXmH13erZw5s3fFV ZxhF0gSTyLmv6NBsnXaGHzi6jQUM7+11SllSb8XbOpHpvkxaioUhRiUaAaDzq9mJswyx 3x2DlaCB0sKD6a5NZU6dtjANZ8hgKMf9DXArP64xeQuoI/7VW4Be0iKRso0w2vWGv4Bi oqDJCLfPVctFGEDP+VwbRtB2yhvmRrSImBDM8EDH2TYqL9I1pKy0Pw0Cq3CGkYQcdN+G /emQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si11014508edo.147.2020.09.08.01.16.38; Tue, 08 Sep 2020 01:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729921AbgIHIPb (ORCPT + 99 others); Tue, 8 Sep 2020 04:15:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:37140 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729722AbgIHIPZ (ORCPT ); Tue, 8 Sep 2020 04:15:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3D708B6CD; Tue, 8 Sep 2020 08:15:24 +0000 (UTC) From: Daniel Wagner To: linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nilesh Javali , Martin Wilck , Arun Easi , Daniel Wagner Subject: [PATCH v3 3/4] qla2xxx: Log calling function name in qla2x00_get_sp_from_handle() Date: Tue, 8 Sep 2020 10:15:15 +0200 Message-Id: <20200908081516.8561-4-dwagner@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200908081516.8561-1-dwagner@suse.de> References: <20200908081516.8561-1-dwagner@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 7c3df1320e5e ("[SCSI] qla2xxx: Code changes to support new dynamic logging infrastructure.") removed the use of the func argument. Let's add it back. Signed-off-by: Daniel Wagner --- drivers/scsi/qla2xxx/qla_isr.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 5d278155e4e7..b0b6dd2b608d 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -1722,8 +1722,8 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func, index = LSW(pkt->handle); if (index >= req->num_outstanding_cmds) { ql_log(ql_log_warn, vha, 0x5031, - "Invalid command index (%x) type %8ph.\n", - index, iocb); + "%s: Invalid command index (%x) type %8ph.\n", + func, index, iocb); if (IS_P3P_TYPE(ha)) set_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags); else @@ -1733,12 +1733,14 @@ qla2x00_get_sp_from_handle(scsi_qla_host_t *vha, const char *func, sp = req->outstanding_cmds[index]; if (!sp) { ql_log(ql_log_warn, vha, 0x5032, - "Invalid completion handle (%x) -- timed-out.\n", index); + "%s: Invalid completion handle (%x) -- timed-out.\n", + func, index); return NULL; } if (sp->handle != index) { ql_log(ql_log_warn, vha, 0x5033, - "SRB handle (%x) mismatch %x.\n", sp->handle, index); + "%s: SRB handle (%x) mismatch %x.\n", func, + sp->handle, index); return NULL; } -- 2.16.4