netdev
[Top] [All Lists]

suggested forcedeth updates....

To: netdev@xxxxxxxxxxx
Subject: suggested forcedeth updates....
From: "Alexander Zapatka" <alexzapatka@xxxxxxxxxxx>
Date: Mon, 17 Nov 2003 23:07:15 -0500
Sender: netdev-bounce@xxxxxxxxxxx
first let me say that forcedeth is a great project!!! i have been using it since you have released it and it is awesome....

but about the debuging thing having to change 1 to 0 and recompile is not always the easiest thing... so what i did was change the code to look like this:

static int debug = 0;
MODULE_PARM(debug,"i");
#if debug
#define dprintk                 printk
#else
#define dprintk(x...)           do { } while (0)
#endif

that way you can modprobe/insmod with debug=1 and debuging works... or you can just load it, or load it with debug=0 and no debuging info is printed.

just thought it might be a nice addition.
     -o)
     /\\    Message void if penguin violated
    _\_V    Don't mess with the penguin

_________________________________________________________________
Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games



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