Re: [PATCH 1/2] break out page allocation warning code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 8, 2011 10:23 PM, "Dave Hansen" <dave@xxxxxxxxxxxxxxxxxx> wrote:
> + Â Â Â if (fmt) {
> + Â Â Â Â Â Â Â printk(KERN_WARNING);
> + Â Â Â Â Â Â Â va_start(args, fmt);
> + Â Â Â Â Â Â Â r = vprintk(fmt, args);
> + Â Â Â Â Â Â Â va_end(args);
> + Â Â Â }

Could we make the "printk(KERN_WARNING);" go away and require caller to specify level?Â

> + Â Â Â printk(KERN_WARNING);
> + Â Â Â printk("%s: page allocation failure: order:%d, mode:0x%x\n",
> + Â Â Â Â Â Â Â Â Â Â Â current->comm, order, gfp_mask);

Even more so here. Why not pr_warning instead of two non-atomic calls to printk?


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]