]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s2io: fixing DBG_PRINT() macro
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Mon, 26 Jul 2010 22:37:30 +0000 (15:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jul 2010 22:37:30 +0000 (15:37 -0700)
Patch 6c3e8d1636aed6e1dbb6e6f45c0673d8a37550af changed the
DBG_PRINT() macro and the if clause was wrongly changed. It means
that currently all the DBG_PRINT are being printed, flooding the
kernel log buffer with things like:

s2io: eth6: Next block at: c0000000b9c90000
s2io: eth6: In Neterion Tx routine

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Acked-by: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/s2io.h

index 5e52c75892dfdb5bd878fb58b1fa715e72be5db3..7f3a53dcc6ef303ca91fa506703074195f549d11 100644 (file)
@@ -65,7 +65,7 @@ static int debug_level = ERR_DBG;
 
 /* DEBUG message print. */
 #define DBG_PRINT(dbg_level, fmt, args...) do {                        \
-       if (dbg_level >= debug_level)                           \
+       if (dbg_level <= debug_level)                           \
                pr_info(fmt, ##args);                           \
        } while (0)