Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4088042imm; Mon, 17 Sep 2018 08:02:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbVqi8uXFXjRA9AeYfnz2cfUBH0eF4X5PTDpnqoiRH6QKqFeT0GdOEGm8xsnnwIeFrmzuNR X-Received: by 2002:a17:902:b40c:: with SMTP id x12-v6mr25190740plr.163.1537196543885; Mon, 17 Sep 2018 08:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537196543; cv=none; d=google.com; s=arc-20160816; b=nTjG3iOqVPbJduh4rEiRFfbMLVD0LmJGphin4H9UQHXvlkahf4dwlSe0svSnbc61fb yFTzUCx8ltq0w9NcYePqfKVZX1TghgOc/zyoVurGWYd8MFNxbvCVfd8ur4bjly9SXkvx rDXY3EUwAO2YekTVjwWXKoYoRgsc+jLgUpMnulg2kHN5/xw+aufZ3PeH7cl+UpoZ8Wcx N+SWDWSA1Du91U3h9E1XQFh6u93tjCUrVtkO780OKVimDjdj1GVZuTfF5FGKhiR1LuVp db6+8fRAMHNvq1fHww/u2ZrpgZUnrShIB0bvAVrP+aNf7rD+Xrqo11d9mkDwsBinuw31 0MwQ== 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=IuQUuODBGXkJu/jSnpjJGeJeBwp/QaxCZ/XW9gtBsJ4=; b=uRVhrqhFtkbh35o49qWJSrgP1synwldTJTy+V/OGYCLIdBgW70erKXH0uut5fo/EmZ g8F3xd+4th05Xiwur4x3cHGUWwpm4VK+vkOxqsj7S0HmqRK5/etYUQxtx6gJ9AIvyKnd R5f2K0dDKxpUTDk8F06qMOPm1XAr2nNQtxoh58q8LPM74MsfhyIy0VDTThbHFzMNcZuk eR8HntEc9ztDEWpm61MTlcZEmHGv8thKmWrrJ5efkdwtq5g0TB5A+OvKS57eLQ4CccET BVHEkELQYP/0AzngxHE/nSm+7eX+hXlkCMMFfQm48ORZ2o/H1a2QmxLcxuLDl8mpMkxR qvPA== 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 v132-v6si15244678pgb.333.2018.09.17.08.02.04; Mon, 17 Sep 2018 08:02:23 -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 S1729203AbeIQU3P (ORCPT + 99 others); Mon, 17 Sep 2018 16:29:15 -0400 Received: from smtprelay0079.hostedemail.com ([216.40.44.79]:40990 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728016AbeIQU3O (ORCPT ); Mon, 17 Sep 2018 16:29:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 65AAB83FA; Mon, 17 Sep 2018 15:01:30 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1540:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3351:3868:5007:6261:8957:10004:10848:11026:11658:11914:12043:12555:12895:13069:13161:13229:13311:13357:14181:14384:14394:14721:21080:21451:21627:30012: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: lead24_4675dfd14f318 X-Filterd-Recvd-Size: 1920 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:23 +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 1/7] mpt3sas: Add ioc_ logging macros Date: Mon, 17 Sep 2018 08:01:08 -0700 Message-Id: <850f37801648df45486d13ff9c11574701f01471.1537183087.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 These macros can help identify specific logging uses and eventually perhaps reduce object sizes. Signed-off-by: Joe Perches --- drivers/scsi/mpt3sas/mpt3sas_base.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 96dc15e90bd8..941a4faf20be 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.h +++ b/drivers/scsi/mpt3sas/mpt3sas_base.h @@ -160,6 +160,15 @@ struct mpt3sas_nvme_cmd { */ #define MPT3SAS_FMT "%s: " +#define ioc_err(ioc, fmt, ...) \ + pr_err("%s: " fmt, (ioc)->name, ##__VA_ARGS__) +#define ioc_notice(ioc, fmt, ...) \ + pr_notice("%s: " fmt, (ioc)->name, ##__VA_ARGS__) +#define ioc_warn(ioc, fmt, ...) \ + pr_warn("%s: " fmt, (ioc)->name, ##__VA_ARGS__) +#define ioc_info(ioc, fmt, ...) \ + pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__) + /* * WarpDrive Specific Log codes */ -- 2.15.0