netdev
[Top] [All Lists]

[PATCH 2.6.4-rc2-bk4 2/2] pcnet32 use netif_msg_init

To: tsbogend@xxxxxxxxxxxxxxxx, jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx
Subject: [PATCH 2.6.4-rc2-bk4 2/2] pcnet32 use netif_msg_init
From: Don Fry <brazilnut@xxxxxxxxxx>
Date: Mon, 8 Mar 2004 11:46:53 -0800 (PST)
Sender: netdev-bounce@xxxxxxxxxxx
Please apply this patch to 2.6.4-rc2-bk4 after the patch to add
the netif_msg_init helper to netdevice.h  (sent Friday 3/5/04
[PATCH 2.4.26-pre2] netdevice.h: add netif_msg_init helper)

This patch uses the netif_msg_init routine to initialize the
debug message level for the pcnet32 driver.  Tested IA32.

--- linux-2.6.4-rc2-bk4/drivers/net/hang.pcnet32.c      Mon Mar  8 11:25:32 2004
+++ linux-2.6.4-rc2-bk4/drivers/net/pcnet32.c   Mon Mar  8 11:26:01 2004
@@ -225,10 +225,13 @@
  * v1.27b  Sep 30 2002 Kent Yoder <yoder1@xxxxxxxxxx>
  *        Added timer for cable connection state changes.
  * v1.28   20 Feb 2004 Don Fry <brazilnut@xxxxxxxxxx>
- *        Jon Lewis <jonmason@xxxxxxxxxx>, Chinmay Albal <albal@xxxxxxxxxx>
+ *        Jon Mason <jonmason@xxxxxxxxxx>, Chinmay Albal <albal@xxxxxxxxxx>
  *        Now uses ethtool_ops, netif_msg_* and generic_mii_ioctl.
  *        Fixes bogus 'Bus master arbitration failure', pci_[un]map_single
  *        length errors, and transmit hangs.  Cleans up after errors in open.
+ *        Jim Lewis <jklewis@xxxxxxxxxx> added ethernet loopback test.
+ *        Thomas Munck Steenholdt <tmus@xxxxxxx> non-mii ioctl corrections.
+ *        Uses netif_msg_init Don Fry.
  */
 
 
@@ -2013,8 +2016,7 @@
 {
     printk(KERN_INFO "%s", version);
 
-    if (debug >= 0 && debug < (sizeof(int) - 1))
-       pcnet32_debug = 1 << debug;
+    pcnet32_debug = netif_msg_init(debug, 0);
 
     if ((tx_start_pt >= 0) && (tx_start_pt <= 3))
        tx_start = tx_start_pt;



-- 
Don Fry
brazilnut@xxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>