Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4091242imm; Mon, 17 Sep 2018 08:04:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZCZFonpp47cLicInS2JD0w2O9xID2RAgHLLpNQgZE6AEoSXT4fj9Oeaj9mtespfo+IE7s+ X-Received: by 2002:a63:7107:: with SMTP id m7-v6mr23658551pgc.73.1537196687273; Mon, 17 Sep 2018 08:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537196687; cv=none; d=google.com; s=arc-20160816; b=DEDIUYziK2EjZW8EyCOB0CfgPq8XdQXbPodBDuD94P+YSnEXJYGbGEoUZ6P1SwcVht aJ4tVMc4f04Ut4qD3oZ8dCndvZwWrvwTiNxEFKR7PTi2sSx5pm5oJkTKTErWi+sXFRSu Y2XLHekPKhjoxqZCrZglPoTJrqHL+biJ6dwaELJvgFaIU2+Mx2pAvt+0CLduZjZtiBij BM7nhGY8N7geYAVcco+ghuvtLxzr5T6Rkei1+mgXmvSURcVI9PVi9iLU8lKu4FgR/G5T GbJCeuPiYzxSf9PJEfmBtE2cz84Hl1xzJhlvG1/AYLVTrKrtmuU+Dou200rDte3my1+S buCw== 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=sHUgAkA+kjpjEIVgGcdSzcn602T0ltoZ8JMq4LaRyjg=; b=qlRgEFtrC9iPP5c4CYsfsK2V38Njtq+fRwGgZt6q2JPG+Ac+OzfKET8XBvuZHLxfnA kkO6qtrt1XqSh3+sFqw7nZacvylFGF2D9ULvj/IakUHibraOqb6TyZOCeYzBeD+4Ms9u Dwie8n7Jr1tTv2sGUIg4LoTS8uK0wQQB9Nv4vzFWsIZq+TBxA586AU5DjNqTDAgez7jt afCWO1YxR+OVUcbxOdTo6ht2RmzyRaxRe/jMqcS8phulMXPJpuSIsjQi6eA5uiJwtJpZ 56BYrI/MB0wso8+DgBGv+2czYM8l4XoA2mmTQMbPwm/gybpb3cvCfxK6tRx3rtXbnUhb /yqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si16333101plk.441.2018.09.17.08.04.31; Mon, 17 Sep 2018 08:04:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729235AbeIQU3g (ORCPT + 99 others); Mon, 17 Sep 2018 16:29:36 -0400 Received: from smtprelay0029.hostedemail.com ([216.40.44.29]:34263 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728016AbeIQU3g (ORCPT ); Mon, 17 Sep 2018 16:29:36 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 8CB67837F243; Mon, 17 Sep 2018 15:01:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 10,1,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:800:960:966:968:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:2904:3138:3139:3140:3141:3142:3352:3865:3867:3868:4321:4385:4605:5007:6261:7974:8603:9010:10004:10848:11026:11658:11914:12043:12438:12555:12679:12895:12986:13069:13255:13311:13357:13523:13524:14181:14384:14394:14721:21080:21433:21451:21627:30029:30054,0,RBL:208.54.39.180:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: show31_4a0572cc3055d X-Filterd-Recvd-Size: 2593 Received: from joe-laptop.perches.com (mb42736d0.tmodns.net [208.54.39.180]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Mon, 17 Sep 2018 15:01:48 +0000 (UTC) From: Joe Perches To: Sathya Prakash , Chaitra P B , Suganath Prabu Subramani Cc: "James E.J. Bottomley" , "Martin K. Petersen" , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] mpt3sas: Convert logging uses with MPT3SAS_FMT and reply_q_name to %s: Date: Mon, 17 Sep 2018 08:01:11 -0700 Message-Id: <80a0b24fd5be85fcd87b92958691ab19484a4295.1537183088.git.joe@perches.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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