lkml.org 
[lkml]   [2011]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [patch net-next]alx: Atheros AR8131/AR8151/AR8152/AR8161 Ethernet driver
    From
    From: <cloud.ren@Atheros.com>
    Date: Wed, 19 Oct 2011 15:26:53 +0800

    > +#define HW_PRINT(_klv, _fmt, _args...) \
    > + if (ALX_HW_MSG_LV_##_klv || ALX_HW_MSG_LV_ALL) {\
    > + printk(KERN_##_klv ALX_HW_MSG_PFX_NAME "%s: " _fmt, \
    > + __func__, ## _args); \
    > + }

    Do not create your own network driver debugging facilities and macros
    for logging messages, we have rich debugging and logging level
    interfaces that network drivers can use exactly for this purpose.


    \
     
     \ /
      Last update: 2011-10-19 09:35    [W:0.018 / U:0.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site