Re: Printk mulitple line message support

From: Joe Perches
Date: Tue Nov 15 2011 - 19:34:48 EST


On Tue, 2011-11-15 at 19:29 -0500, Valdis.Kletnieks@xxxxxx wrote:
> On Mon, 14 Nov 2011 17:18:03 PST, Joe Perches said:
>
> > mp_start(&cookie)
> > pr_<level>(fmt, ...);
> > pr_mp_cont(&cookie, fmt, ...);
> > pr_mp_cont(&cookie, fmt "\n", ...);
> > mp_end(&cookie);
>
> What should happen if buggy code returns before calling mp_end()?

Every pr_cont use gets emitted with a cookie id
which is annoying enough to get the code fixed
rather quickly no?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/