From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ramachandra K" Subject: Re: [ofa-general] RE: [PATCH 11/13] QLogic VNIC: Driver utility file - implements various utility macros Date: Thu, 1 May 2008 22:31:10 +0530 Message-ID: <71d336490805011001he7359dfw831470986d87b385@mail.gmail.com> References: <20080430171028.31725.86190.stgit@localhost.localdomain> <20080430172126.31725.48554.stgit@localhost.localdomain> <20080501075816.1010ec3a@extreme> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, rdreier@cisco.com, "Amar Mudrankit \(Contractor - \)" , general@lists.openfabrics.org, "Poornima Kamath \(Contractor - \)" To: "Stephen Hemminger" Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: general-bounces@lists.openfabrics.org Errors-To: general-bounces@lists.openfabrics.org List-Id: netdev.vger.kernel.org Sorry for the resend. Original mail bounced from netdev. On Thu, May 1, 2008 at 9:48 PM wrote: > Stephen, > > > Stephen Hemminger [mailto:shemminger@vyatta.com] wrote: > > > Ramachandra K wrote: > > >> +#define is_power_of2(value) (((value) & ((value - 1))) == 0) > >> +#define ALIGN_DOWN(x, a) ((x)&(~((a)-1))) > > > In kernel.h already > > Will fix this. Thanks. > > > >> +extern u32 vnic_debug; > > > Use msg level macros instead? > > I am sorry, I did not understand this comment. > > > > + > > +#define SYS_INFO(fmt, arg...) \ > > + PRINT_CONDITIONAL(KERN_INFO, \ > > + "SYS", \ > > + (vnic_debug & DEBUG_SYS_INFO), \ > > + fmt, ##arg) > > + > > +#endif /* VNIC_UTIL_H_INCLUDED */ > > > > Many of these are already in standard macros pr_info, pr_err etc. > > These macros are for providing a debug log level functionality through > the vnic_debug module parameter. > > Regards, > Ram