netdev
[Top] [All Lists]

[patch 2.4.25 14/15] pcnet32 another debug fix

To: tsbogend@xxxxxxxxxxxxxxxx, jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx
Subject: [patch 2.4.25 14/15] pcnet32 another debug fix
From: Don Fry <brazilnut@xxxxxxxxxx>
Date: Wed, 25 Feb 2004 12:07:01 -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.4.25/drivers/net/24.pcnet32.c       Mon Feb 23 13:56:29 2004
+++ linux-2.4.25/drivers/net/pcnet32.c  Wed Feb 25 11:55:57 2004
@@ -1946,7 +1946,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.4.25 14/15] pcnet32 another debug fix, Don Fry <=