printk-wrapper with sectionized string constants [was: Re: [RFC, PATCH] watchdog on gpio]

2008-01-14 Thread Johannes Weiner
Hi, "Mike Frysinger" <[EMAIL PROTECTED]> writes: >> How about: >> >> #define init_printk(fmt, args...) ({\ >> static const __init char __fmt[] = fmt; \ >> printk(__fmt, args);\ >> }) >> >> Now it returns the printk result. > > i wasnt really worried

printk-wrapper with sectionized string constants [was: Re: [RFC, PATCH] watchdog on gpio]

2008-01-14 Thread Johannes Weiner
Hi, Mike Frysinger [EMAIL PROTECTED] writes: How about: #define init_printk(fmt, args...) ({\ static const __init char __fmt[] = fmt; \ printk(__fmt, args);\ }) Now it returns the printk result. i wasnt really worried about that ... i was