From: Breno Leitao Date: Mon, 26 Jul 2010 22:37:30 +0000 (-0700) Subject: s2io: fixing DBG_PRINT() macro X-Git-Tag: firefly_0821_release~9833^2~1353^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5447080cfa3c77154498dfbf225367ac85b4c2b5;p=firefly-linux-kernel-4.4.55.git s2io: fixing DBG_PRINT() macro Patch 9e39f7c5b311a306977c5471f9e2ce4c456aa038 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 Acked-by: Sreenivasa Honnur Signed-off-by: David S. Miller --- diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 5e52c75892df..7f3a53dcc6ef 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h @@ -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)