Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp792389imm; Thu, 4 Oct 2018 03:30:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV60JUsBvgo6ox4ZgYNqvt1OmtRrEOtXFzuDlRG+zMtRB2xhWAILZ0x7xavsZk6y1F0JZohio X-Received: by 2002:a17:902:167:: with SMTP id 94-v6mr5823989plb.142.1538649053777; Thu, 04 Oct 2018 03:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538649053; cv=none; d=google.com; s=arc-20160816; b=zRWjgK0FP2cJw1vi26lG66Yn77RsJWfhU94HRqMubIllYioCp4Mp5aZKRtGW1TJpku LY/IJV/dAoE1UVok+00n8mm+dE37oMStO2dWj2iprrfahmvW6Vub1kS411dySJEDalda Qy1VUFMnRVJ3CzFfVr5akiXhA1gwD9pb/la1VGiKbGS3A3UsrEdqX/ppNmr65vyHiCY5 WMRub0wzr7iw+vyVa3dPgPydZfRTHKsIfNnOqWjPWUa7Q3gCA4OOYSr+krcSSb39QEaE VLyLpC3URyvZYUCuwRi5cEKEd0wCHoc79cg4dQaV+vEPb99ye29wXoVCGnu5tguCuiIK SWJA== 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=EaxISKHojTZBeWA0SGQ6/PLmCxUB5xGq0JQV9IBFR78=; b=dbRsTi5CXGnU6xPB+Qwo7hW/BVacqRg6HiJ+Diw0rYh3QOu4IFBVjH2w7gYabdIazl pkVP2mB15Kus6e78QU11SNCO/At3wsf+bBpPwAEYu304W7EtbrauLn2/8ebLc/P/H+Z7 s/ePQjnJLc29fof8NQ9AKSFdF3GNWA4FNfQOJGgHGIfIR+i2KFabS4p4bLPYvsnBYfwk NRYuFHC2NGoVs6zfdpz4R9rvP8aWfLZsIFhXfjckk/r198xvKhOAwa+AKvMDdx07Tqk7 JEKBGfkPatW9Nyqla36RGjvyQFBIzGYl6iu4Wa26dutvQoXJQyZyfb1j1/3u5lxZJICT wRWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=TT+8qYvJ; 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 k190-v6si4395640pgd.181.2018.10.04.03.30.38; Thu, 04 Oct 2018 03:30:53 -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=TT+8qYvJ; 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 S1727486AbeJDRVr (ORCPT + 99 others); Thu, 4 Oct 2018 13:21:47 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:41389 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbeJDRVq (ORCPT ); Thu, 4 Oct 2018 13:21:46 -0400 Received: by mail-qt1-f196.google.com with SMTP id m15-v6so9222081qtp.8 for ; Thu, 04 Oct 2018 03:29:08 -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=EaxISKHojTZBeWA0SGQ6/PLmCxUB5xGq0JQV9IBFR78=; b=TT+8qYvJZ5Qb+GMNFUlAbaTQY+drEQxvfUqf7ZdwEWRNDQklL3sSbSJNk8gEue8LR+ /89fOY7TErL4aRgh+PmyhBksW3gorRLvF1j9VaEh2zgDmoFDU37hp4EL53y3yEIW2KdS e2LLk8xZcrFaK6MFkHAOQdxo2bwPPuoVdt0mQ= 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=EaxISKHojTZBeWA0SGQ6/PLmCxUB5xGq0JQV9IBFR78=; b=d6mgmVo/alCC91vq2Ln0k7bN2CV5OYBzrkW3WUfsEVdbhvAwB1Dn6UvAObWmoRSzNS 9T98XyxYQkoA+GP8GijROS4ZF20PQsOokCWSoS8MJsYeqEMXKaW9YKRlTS7Axggjat0m 8sm25sSFJnj2y/zTDtqJvzuP46p8BmBqsoTgsY+u//tv28+RcdNV0+0TTIvhvfdJauuK pgCG1WmpPqqYvoUJyo4G1yhOFc7fYhCEIte8Z/b24q5brjLgeuWk0c3OFfEgPb/xpl7c Y+SCPwomOmUIZjoSKhDmX8r5XWqVZgStxm0OfR4nbsBf7oWKoJ+YzFy42NmF2MSlC2Id ircg== X-Gm-Message-State: ABuFfoh6CE5HcJs5Mn2U3PGd+GIjDUKk5Ue8pnx9RR12+6e+OQnVplio LANNjwsPuxBJI+FMia43gL/lWGxGA8SkLhuaJ9UftA== X-Received: by 2002:ac8:2974:: with SMTP id z49-v6mr4619065qtz.111.1538648947829; Thu, 04 Oct 2018 03:29:07 -0700 (PDT) MIME-Version: 1.0 References: <80a0b24fd5be85fcd87b92958691ab19484a4295.1537183088.git.joe@perches.com> In-Reply-To: <80a0b24fd5be85fcd87b92958691ab19484a4295.1537183088.git.joe@perches.com> From: Suganath Prabu Subramani Date: Thu, 4 Oct 2018 15:59:36 +0530 Message-ID: Subject: Re: [PATCH 4/7] mpt3sas: Convert logging uses with MPT3SAS_FMT and reply_q_name to %s: To: joe@perches.com Cc: Sathya Prakash , Chaitra Basappa , 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 Please consider this patch as Acked-by: Suganath Prabu Thanks. On Mon, Sep 17, 2018 at 8:31 PM Joe Perches wrote: > > Convert the existing 2 uses to make the format and arguments > matching more obvious. > > Miscellanea: > > o Move the word "enabled" into the format to trivially reduce object size > o Remove unnecessary parentheses > > Signed-off-by: Joe Perches > --- > drivers/scsi/mpt3sas/mpt3sas_base.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c > index 5c6634b7ca74..386af6739867 100644 > --- a/drivers/scsi/mpt3sas/mpt3sas_base.c > +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c > @@ -2705,7 +2705,7 @@ _base_request_irq(struct MPT3SAS_ADAPTER *ioc, u8 index) > r = request_irq(pci_irq_vector(pdev, index), _base_interrupt, > IRQF_SHARED, reply_q->name, reply_q); > if (r) { > - pr_err(MPT3SAS_FMT "unable to allocate interrupt %d!\n", > + pr_err("%s: unable to allocate interrupt %d!\n", > reply_q->name, pci_irq_vector(pdev, index)); > kfree(reply_q); > return -EBUSY; > @@ -3034,10 +3034,10 @@ mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc) > } > > list_for_each_entry(reply_q, &ioc->reply_queue_list, list) > - pr_info(MPT3SAS_FMT "%s: IRQ %d\n", > - reply_q->name, ((ioc->msix_enable) ? "PCI-MSI-X enabled" : > - "IO-APIC enabled"), > - pci_irq_vector(ioc->pdev, reply_q->msix_index)); > + pr_info("%s: %s enabled: IRQ %d\n", > + reply_q->name, > + ioc->msix_enable ? "PCI-MSI-X" : "IO-APIC", > + pci_irq_vector(ioc->pdev, reply_q->msix_index)); > > ioc_info(ioc, "iomem(%pap), mapped(0x%p), size(%d)\n", > &chip_phys, ioc->chip, memap_sz); > -- > 2.15.0 >