Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp792177imm; Thu, 4 Oct 2018 03:30:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60v0XjgkHzzQBwieCQJvSpGrWZqUvNk+aS0pi9MRAq5vYfpRSv6stSwEgZ+2sCXsMdSHPXG X-Received: by 2002:a62:4b09:: with SMTP id y9-v6mr6069459pfa.93.1538649039501; Thu, 04 Oct 2018 03:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538649039; cv=none; d=google.com; s=arc-20160816; b=gGHoFbvAF5T8A91rOqjXIVSL5+GXdMAUwdU99DQYxpq3pzRO620Hf7Kkx9xHX7JeCg YW8XwWGt2JofmbX3Ti8cxlVg7d3xgFcHlKiA/XnuUB/NyX+J+KSfy9kArszqWC+DnH9M A8RCC+o8LPi3F47jDW5Vo75UDLo4d90e5MRCCHw4vTV/yIGRUwcgxoxIQGf2o/ceBnVM sZxlHtkzg+xLDnUiYFLSrvlY/JsZToVHn47sELvjp/wHqCfSvzLLW5m2pZXY1BWqArVK MWEhaJcd6i76LikBwgyrlgMUv7uNrd9sl11DUqbEC1UCamjIZvPU+EXC46HhwBItoE5K qaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=k6KfDIFYHNIcMGbHKij2RBTOK+US6yvxz2XS38T4Gr0=; b=dzhUQ+LwjxVD2Aj9WVAuuA+3AuvxhEoYjQkatLVtLMhev/EwirI6uACDP68JEA0Das ev3pFsYjsV29N4NZCVTxAT0rUOMfrh8yxnl24iMSPPZ2iyXYAywnRXNAqUTQvZ0eitQo +234fUApHBbyNSoF2hOhrotmHtdIUZOHNjWgkunogzYrD1zaFuyRSo1EW9HfFv1TExp2 O7jq29+1Yai5LhYNL4/6efUt75lpBuMUeGy0tAwJTO8bscfw2MQbL3JB4FOSQ3JT/K78 y6X0aHPMY4XLPGgOpce0N5Vk5v7WQyL7maT1mwUq9/Le4OoO8NKhGUVbroWgPmGd8MnI AdpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Z6A1Ha4e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36-v6si4658634pld.88.2018.10.04.03.30.23; Thu, 04 Oct 2018 03:30:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Z6A1Ha4e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727460AbeJDRVJ (ORCPT + 99 others); Thu, 4 Oct 2018 13:21:09 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46881 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbeJDRVJ (ORCPT ); Thu, 4 Oct 2018 13:21:09 -0400 Received: by mail-qk1-f193.google.com with SMTP id q12-v6so5342185qkl.13 for ; Thu, 04 Oct 2018 03:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k6KfDIFYHNIcMGbHKij2RBTOK+US6yvxz2XS38T4Gr0=; b=Z6A1Ha4ejB8JjB5ZZHTJr7sT8W10mY6MV6WJM9DZNBce2OaaFPTH6uuZywByPJY20O WKHpj2PcsdL+cVxMV3yydSa/QBw307KDKeoCxF1EKJ2+0qy3RAjf92tPhfBgD1DjQia8 Km6HGVsWmQDZR+POneDlCwGOZCWB0TfBvJzts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k6KfDIFYHNIcMGbHKij2RBTOK+US6yvxz2XS38T4Gr0=; b=g7xtAXVYh7AB8a+IgyCakkzZ7DXOOPk2GGo231lXat1u6A4NisIfa+rz5Erf89Y41s O0oIq1FxcuvaL3QcHuOpx752sJmFuS9oyrR+LfuH1t6WKtyEY/Tv2R5C5rEsg3dgnB4Y qhHqhqs8L7pI9WoTV4cBmNR8FdnyAde17tTtiXF880ZryUtCg2nVMK5dwan58ZZOZITm 0OFLnVS4V5YkqFKLe35X8pO9XG7u7sG202tqiZYhPUgRL+QseozlE//tPuCynt0M7z2d +XXeuCl2jnZ5awi3zLLdvgSN/KH2/vsCwz+UBmL1sXKaFA8/ai0G6N8uHBBwequpE+E5 c0Og== X-Gm-Message-State: ABuFfoheEgG42ImfvCkHzQPptrxboTmbee+pCm58t+JLEotwMHvpjCzI ByB8FWYhOwIUOzBDT705luXx2k5m4xqEX7GBQSYejg== X-Received: by 2002:ae9:f106:: with SMTP id k6-v6mr4602402qkg.34.1538648910795; Thu, 04 Oct 2018 03:28:30 -0700 (PDT) MIME-Version: 1.0 References: <71b9656aa46ec31a9991587d7ff204e0877a336e.1537183088.git.joe@perches.com> In-Reply-To: <71b9656aa46ec31a9991587d7ff204e0877a336e.1537183088.git.joe@perches.com> From: Suganath Prabu Subramani Date: Thu, 4 Oct 2018 15:58:59 +0530 Message-ID: Subject: Re: [PATCH 3/7] mpt3sas: Convert mlsleading uses of pr_ with MPT3SAS_FMT To: joe@perches.com Cc: Sathya Prakash , jejb@linux.vnet.ibm.com, "Martin K. Petersen" , PDL-MPT-FUSIONLINUX , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Please consider this patch as Acked-by: Suganath Prabu Thanks. On Mon, Sep 17, 2018 at 8:31 PM Joe Perches wrote: > > These have misordered uses of __func__ and ioc->name that could > mismatch MPT3SAS_FMT and "%s: ". > > Convert them to ioc_. > > Signed-off-by: Joe Perches > --- > drivers/scsi/mpt3sas/mpt3sas_scsih.c | 50 +++++++++++++++----------------- > drivers/scsi/mpt3sas/mpt3sas_transport.c | 18 ++++-------- > 2 files changed, 29 insertions(+), 39 deletions(-) > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c > index 3331eba4b78d..8089be381c72 100644 > --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c > +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c > @@ -2627,15 +2627,13 @@ mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, u64 lun, > lockdep_assert_held(&ioc->tm_cmds.mutex); > > if (ioc->tm_cmds.status != MPT3_CMD_NOT_USED) { > - pr_info(MPT3SAS_FMT "%s: tm_cmd busy!!!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: tm_cmd busy!!!\n", __func__); > return FAILED; > } > > if (ioc->shost_recovery || ioc->remove_host || > ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > return FAILED; > } > > @@ -3550,18 +3548,16 @@ _scsih_tm_tr_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) > u8 tr_method = 0; > > if (ioc->pci_error_recovery) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host in pci error recovery: handle(0x%04x)\n", > - __func__, ioc->name, > - handle)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host in pci error recovery: handle(0x%04x)\n", > + __func__, handle)); > return; > } > ioc_state = mpt3sas_base_get_iocstate(ioc, 1); > if (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host is not operational: handle(0x%04x)\n", > - __func__, ioc->name, > - handle)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host is not operational: handle(0x%04x)\n", > + __func__, handle)); > return; > } > > @@ -3811,9 +3807,9 @@ _scsih_tm_tr_volume_send(struct MPT3SAS_ADAPTER *ioc, u16 handle) > struct _tr_list *delayed_tr; > > if (ioc->pci_error_recovery) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host reset in progress!\n", > - __func__, ioc->name)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host reset in progress!\n", > + __func__)); > return; > } > > @@ -3863,9 +3859,9 @@ _scsih_tm_volume_tr_complete(struct MPT3SAS_ADAPTER *ioc, u16 smid, > mpt3sas_base_get_reply_virt_addr(ioc, reply); > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host reset in progress!\n", > - __func__, ioc->name)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host reset in progress!\n", > + __func__)); > return 1; > } > if (unlikely(!mpi_reply)) { > @@ -3950,21 +3946,21 @@ _scsih_issue_delayed_sas_io_unit_ctrl(struct MPT3SAS_ADAPTER *ioc, > unsigned long flags; > > if (ioc->remove_host) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host has been removed\n", > - __func__, ioc->name)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host has been removed\n", > + __func__)); > return; > } else if (ioc->pci_error_recovery) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host in pci error recovery\n", > - __func__, ioc->name)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host in pci error recovery\n", > + __func__)); > return; > } > ioc_state = mpt3sas_base_get_iocstate(ioc, 1); > if (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { > - dewtprintk(ioc, pr_info(MPT3SAS_FMT > - "%s: host is not operational\n", > - __func__, ioc->name)); > + dewtprintk(ioc, > + ioc_info(ioc, "%s: host is not operational\n", > + __func__)); > return; > } > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_transport.c b/drivers/scsi/mpt3sas/mpt3sas_transport.c > index d4bf4d5e576e..09034a3fba2c 100644 > --- a/drivers/scsi/mpt3sas/mpt3sas_transport.c > +++ b/drivers/scsi/mpt3sas/mpt3sas_transport.c > @@ -146,8 +146,7 @@ _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle, > u32 ioc_status; > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > return -EFAULT; > } > > @@ -308,8 +307,7 @@ _transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc, > u16 wait_state_count; > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > return -EFAULT; > } > > @@ -1088,8 +1086,7 @@ _transport_get_expander_phy_error_log(struct MPT3SAS_ADAPTER *ioc, > u16 wait_state_count; > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > return -EFAULT; > } > > @@ -1393,8 +1390,7 @@ _transport_expander_phy_control(struct MPT3SAS_ADAPTER *ioc, > u16 wait_state_count; > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > return -EFAULT; > } > > @@ -1894,8 +1890,7 @@ _transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, > unsigned int reslen = 0; > > if (ioc->shost_recovery || ioc->pci_error_recovery) { > - pr_info(MPT3SAS_FMT "%s: host reset in progress!\n", > - __func__, ioc->name); > + ioc_info(ioc, "%s: host reset in progress!\n", __func__); > rc = -EFAULT; > goto job_done; > } > @@ -1975,8 +1970,7 @@ _transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, > wait_for_completion_timeout(&ioc->transport_cmds.done, 10*HZ); > > if (!(ioc->transport_cmds.status & MPT3_CMD_COMPLETE)) { > - pr_err(MPT3SAS_FMT "%s : timeout\n", > - __func__, ioc->name); > + ioc_err(ioc, "%s: timeout\n", __func__); > _debug_dump_mf(mpi_request, > sizeof(Mpi2SmpPassthroughRequest_t)/4); > if (!(ioc->transport_cmds.status & MPT3_CMD_RESET)) { > -- > 2.15.0 >