Messages in this thread | | | Subject | Re: [PATCH 2/2] FS/CONFIGFS: Use pr_fmt | From | Joe Perches <> | Date | Tue, 13 May 2014 15:30:23 -0700 |
| |
On Tue, 2014-05-13 at 15:15 -0700, Andrew Morton wrote: > On Tue, 13 May 2014 18:06:50 -0400 Valdis.Kletnieks@vt.edu wrote: > > On Tue, 13 May 2014 13:50:49 -0700, Andrew Morton said: > > > On Tue, 13 May 2014 20:24:28 +0200 Fabian Frederick <fabf@skynet.be> wrote: > > > > > > +#ifdef pr_fmt > > > > +#undef pr_fmt > > > > +#endif > > > > > > Why this? > > > > > > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > > > Won't GCC whinge by default about the #define if it doesn't exactly match the > > previous definition? > > Yes, if there's already a pf_fmt defined. That's what I'm asking about > - what pr_fmt are we overriding here? Seems wrong.
If this is not the first #include or if this #includes kernel.h/printk.h, then the default #define pr_fmt(fmt) fmt from printk.h will be used.
One year soon, I'd like to change the default from blank to KBUILD_MODNAME ": " fmt
| |