Thread (6 messages) flat view 6 messages, 3 authors, 2012-01-25

Re: [net PATCH 1/1] qlge:Changing netdev msg level to default debug

From: Viral Mehta <hidden>
Date: 2012-01-24 16:52:20

Hi,

On Mon, Jan 23, 2012 at 6:38 PM, Jitendra Kalsaria
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
-static const u32 default_msg =
-    NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK |
-/* NETIF_MSG_TIMER |   */
-    NETIF_MSG_IFDOWN |
-    NETIF_MSG_IFUP |
-    NETIF_MSG_RX_ERR |
-    NETIF_MSG_TX_ERR |
-/*  NETIF_MSG_TX_QUEUED | */
-/*  NETIF_MSG_INTR | NETIF_MSG_TX_DONE | NETIF_MSG_RX_STATUS | */
-/* NETIF_MSG_PKTDATA | */
-    NETIF_MSG_HW | NETIF_MSG_WOL | 0;
-
-static int debug = -1; /* defaults above */
+#define DEFAULT_DEBUG_MSG_LEVEL 3
+static int debug = DEFAULT_DEBUG_MSG_LEVEL;
 module_param(debug, int, 0664);
 MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");
@@ -4614,7 +4603,7 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
               err = -EIO;
               goto err_out2;
       }
-       qdev->msg_enable = netif_msg_init(debug, default_msg);
+       qdev->msg_enable = netif_msg_init(debug, DEFAULT_DEBUG_MSG_LEVEL);
Do you want to initialize qdev->msg_enable with 0x11 ?
(I assume this based on above line where you initialized debug with 3
(decimal value))

If so, the above line will initialize with 0x111
As per netif_msg_init function (1 << 3 ) -1

Poiniting out because it can be a mistake in hurry.
If not, and you think what you have done is
what you wanted to do then sorry for the noise

But would like to read more clear commit log message.

-- 
Thanks,
Viral Mehta
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help