Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp789152imm; Thu, 4 Oct 2018 03:27:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV62y8aNq2WaG8ktrsedLBNxgKYrrWNp91U63nGFepPOjx4lQ6La9p3oo+0brrrn3gIz8THcw X-Received: by 2002:a62:184a:: with SMTP id 71-v6mr6047268pfy.246.1538648827763; Thu, 04 Oct 2018 03:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538648827; cv=none; d=google.com; s=arc-20160816; b=o7f5V4RIoyIMU0pt3ym/EUCcmxAXUGuYKd/g7NnxTjrgRy0xv7E7ac0PtD/q6AHQYl 3DqujTcA441ZlvDxJ+W8bei9i7lCn/am43yLiqVIY/JHKqO7hT10v7ApyN4trfSTPf7o Nka+DQYS2Y1Js/DFH5x1eKpGBWB4ShzIo06YF3rJXvGgZ2lnpbUCLvO3jqlgrMKyxIPm Dj2LI1oWhSSuhOxkJBamb3FB/HaVCr5js2BK3u/XZSKj4j0WpoPaHKIDGzz7OGmYHgyv AxZjXc7xJxHQZsHMCF1KUiiHZ6646FW3FicnhLZ9BPi1JAZHG/jwUXvwq1CSlbVzIOm1 fCIw== 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=VPdp1v0/7eriOt3eTpR043dZ3Q80G7wLnVZa6LvP/+k=; b=hISKeSNraDpx8a1EI4K9dUNqJneT/W4d8ufMA5O2ZvxA33DSooWgWIJZkKodjhNjey JTI+eZa2iwSqHwUwWdyrW+bjRyo1wgtUVTt8hXdqTE87kp3PvXpdNI38KknMvdzUqmjl UvGPLL++6lfNsr8GkTndz1Z6k3igKMCUgtXWAYIQJ0537EZXNvOe+v+okTRqv9cQoQ4w 1A5mz0uhgctV6QA1RoWaVGaBUdQ7RQ7iKeyhQUYOBsywQooxusBUwVNYsbr+8wzmWdT2 21RGn8bS++Y/KLyWY2mSHrXSzi/psraaO6AIPdP2iB8HPifjjTJBDKLgn/ybfEZ9hGEM R6QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=XCJ7iRb8; 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 c17-v6si4156051pgp.299.2018.10.04.03.26.50; Thu, 04 Oct 2018 03:27:07 -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=XCJ7iRb8; 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 S1727314AbeJDRRz (ORCPT + 99 others); Thu, 4 Oct 2018 13:17:55 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35882 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbeJDRRz (ORCPT ); Thu, 4 Oct 2018 13:17:55 -0400 Received: by mail-qt1-f194.google.com with SMTP id u34-v6so9228233qth.3 for ; Thu, 04 Oct 2018 03:25:18 -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=VPdp1v0/7eriOt3eTpR043dZ3Q80G7wLnVZa6LvP/+k=; b=XCJ7iRb8JAbK8XHJ++sUzUajH+yOXJ4TjjhkKf3KeaawuA1smtv5OyMqbjUj/a8Gxl 8h1KgU+6ALPviBzWq1IT5ixxEdaaJqQqs/T6NjFYoK8veSbG0zDrJJW7rOE1+iQ3pnrL S96fueN/geg5gMwcYOL+/cRcHFx8zLAacFSIw= 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=VPdp1v0/7eriOt3eTpR043dZ3Q80G7wLnVZa6LvP/+k=; b=R+11JgbdAVK++Q5P2pgVxkF6qyvEsJB5jiS7DDxNv4YfB+4g3PdVsglcYvXDJwej0/ QgLk+DkVnX0NAihTQ5hTbp1O2/JtfvMAE8U62Mk7w7uIuCsSS+KCFPy8mGnIZCsWF7rK aQrD+m38VgHjB7EqJYOunrIHnMRzh21TmdUWSAPnYgq+nMLW0MWewZnrCX98kPEfgO65 dWJX1FKetK1fJCnxNDMtxX5ef8XFY0amw9q+fWqMhwMbmCvAMZPOFRbkAHT+ECg3lnwp H7wvoGkl3rVIeERWvgWDTmr72N33a//8hxI3jWuyBjU2oA1haYFg/6e+8I1dtHtCDL7e kFfQ== X-Gm-Message-State: ABuFfogWxpoSf+XeTidICzq0V5PbaVvkkGWSC0sA/6Ktfiga7f8MMEO3 kkm4eXJ8kHY5B2G40DbQ9DccBnmUpy+kwCPGBvx6fQ== X-Received: by 2002:a0c:8722:: with SMTP id 31-v6mr4772569qvh.47.1538648718276; Thu, 04 Oct 2018 03:25:18 -0700 (PDT) MIME-Version: 1.0 References: <850f37801648df45486d13ff9c11574701f01471.1537183087.git.joe@perches.com> In-Reply-To: <850f37801648df45486d13ff9c11574701f01471.1537183087.git.joe@perches.com> From: Suganath Prabu Subramani Date: Thu, 4 Oct 2018 15:55:46 +0530 Message-ID: Subject: Re: [PATCH 1/7] mpt3sas: Add ioc_ logging macros 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 Hi, Please consider this patch as Acked-by: Suganath Prabu Thanks. On Mon, Sep 17, 2018 at 8:31 PM Joe Perches wrote: > > 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 >