| To: | Don Fry <brazilnut@xxxxxxxxxx> |
|---|---|
| Subject: | Re: resend [PATCH 2.6.4-rc2] netdevice.h add netif_msg_init helper |
| From: | Jeff Garzik <jgarzik@xxxxxxxxx> |
| Date: | Fri, 05 Mar 2004 14:25:09 -0500 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <200403051743.i25Hh5B02111@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <200403051743.i25Hh5B02111@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 |
Don Fry wrote: This patch adds a helper function to initialize the debug bit mask for use with netif_msg_*. When the debug_value is out of range it returns the default_msg_enable_bits. --- linux-2.6.4-rc2/include/linux/orig.netdevice.h Thu Mar 4 09:59:08 2004 +++ linux-2.6.4-rc2/include/linux/netdevice.h Thu Mar 4 10:56:19 2004 @@ -774,6 +774,17 @@ #define netif_msg_hw(p) ((p)->msg_enable & NETIF_MSG_HW) #define netif_msg_wol(p) ((p)->msg_enable & NETIF_MSG_WOL)+static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits) Oh, my apologies. I didn't see you had made the additional change I requested. This version looks better, but we still have an out of range value (32) resulting in no-messages, rather than the default value. I would change the first ">" to ">=", and simply eliminate the final test.
Jeff
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | ip_route_me_harder -> xfrm_lookup, Herbert Xu |
|---|---|
| Next by Date: | Xeon smp performance, satya srikanth |
| Previous by Thread: | resend [PATCH 2.6.4-rc2] netdevice.h add netif_msg_init helper, Don Fry |
| Next by Thread: | Re: resend [PATCH 2.6.4-rc2] netdevice.h add netif_msg_init helper, Don Fry |
| Indexes: | [Date] [Thread] [Top] [All Lists] |