netdev
[Top] [All Lists]

[patch 2.6.3] pcnet32 another debug fix

To: tsbogend@xxxxxxxxxxxxxxxx, jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx
Subject: [patch 2.6.3] pcnet32 another debug fix
From: Don Fry <brazilnut@xxxxxxxxxx>
Date: Tue, 24 Feb 2004 16:57:45 -0800 (PST)
Sender: netdev-bounce@xxxxxxxxxxx
As requested, another fix for pcnet32_debug to have a bunch of bits in
increasing order of verbosity, not just one bit.

--- linux-2.6.3/drivers/net/almost.pcnet32.c    Tue Feb 24 16:40:22 2004
+++ linux-2.6.3/drivers/net/pcnet32.c   Tue Feb 24 16:39:18 2004
@@ -2009,7 +2009,7 @@
     printk(KERN_INFO "%s", version);
 
     if (debug >= 0 && debug < (sizeof(int) - 1))
-       pcnet32_debug = 1 << debug;
+       pcnet32_debug = (1 << debug) - 1;
 
     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>
  • [patch 2.6.3] pcnet32 another debug fix, Don Fry <=