Thread (32 messages) 32 messages, 3 authors, 2008-05-20

Re: [ofa-general] RE: [PATCH 11/13] QLogic VNIC: Driver utility file - implements various utility macros

From: Ramachandra K <hidden>
Date: 2008-05-01 17:01:10

Sorry for the resend. Original mail bounced from netdev.

On Thu, May 1, 2008 at 9:48 PM [off-list ref] wrote:
Stephen,


 Stephen Hemminger [mailto:shemminger@vyatta.com] wrote:

 > Ramachandra K [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help