[ofa-general] RE: [PATCH 11/13] QLogic VNIC: Driver utility file - implements various utility macros
Kuchimanchi, Ramachandra (Contractor - )
ramachandra.kuchimanchi at qlogic.com
Thu May 1 09:18:53 PDT 2008
Stephen,
Stephen Hemminger [mailto:shemminger at vyatta.com] wrote:
> Ramachandra K <ramachandra.kuchimanchi at qlogic.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080501/1bbbe12b/attachment.html>
More information about the general
mailing list