Skip to contentSkip to conversation

suggested forcedeth updates....

DISCUSSION Alexander Zapatka 3 participants 3 messages Nov 18, 2003 – Nov 19, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Alexander Zapatka

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.

Even better would be to use the NETIF_MSG_* flags defined in linux/netdevice.c and to be able to use ethtool to change the setting at runtime.

Signature · 2 lines
Regards,
Rask Ingemann Lambertsen
#2 lore raw
Quoted 11 lines · Rask Ingemann Lambertsen
Quoted 3 lines · Alexander Zapatka

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.

Even better would be to use the NETIF_MSG_* flags defined in linux/netdevice.c and to be able to use ethtool to change the setting at runtime.

agreed...