On Tue, Aug 08, 2006 at 01:15:57AM +0200, Pavel Machek wrote: > Hi! > > > Thanks for the sign-offs! > > No problem. > > > >> +module_param_named(debug, tp_debug, int, 0600); > > >> +MODULE_PARM_DESC(debug, "Debug level (0=off, 1=on)"); > > >> + > > >> +/* A few macros for printk()ing: */ > > >> +#define DPRINTK(fmt, args...) \ > > >> + do { if (tp_debug) printk(KERN_DEBUG fmt, ## args); } while (0) > > > > > >Is not there generic function doing this? > > > > None that I found. Many drivers do it this way. > > linux/kernel.h : pr_debug() looks similar. Use dev_dbg() and friends please instead of rolling your own. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: "Shem Multinymous" <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Pavel Machek <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- References:
- [PATCH 00/12] ThinkPad embedded controller and hdaps drivers
- From: Shem Multinymous <[email protected]>
- [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Shem Multinymous <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Pavel Machek <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: "Shem Multinymous" <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Pavel Machek <[email protected]>
- [PATCH 00/12] ThinkPad embedded controller and hdaps drivers
- Prev by Date: Re: [PATCH 02/12] hdaps: Use thinkpad_ec instead of direct port access
- Next by Date: Re: [PATCH 03/12] hdaps: Unify and cache hdaps readouts
- Previous by thread: Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- Next by thread: Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- Index(es):