Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

From: Petr Mladek
Date: Thu Aug 24 2017 - 05:21:27 EST


On Wed 2017-08-23 21:36:21, Helge Deller wrote:
> On 23.08.2017 16:49, Steven Rostedt wrote:
> > On Wed, 23 Aug 2017 16:48:24 +0200
> > Petr Mladek <pmladek@xxxxxxxx> wrote:
> >
> >> +
> >> + printk("Going to call: %pF\n", gettimeofday);
> >> + printk("Going to call: %pF\n", p->func);
> >> + printk("%s: called from %pS\n", __func__, _RET_IP_);
> >> + printk("%s: called from %pS\n", __func__, __builtin_return_address(0));
> >> + printk("Faulted at %pS\n", (void *)regs->ip);
> >> + printk(" %s%pB\n", reliable ? "" : "? ", (void *)*stack);
> >
> > Much better!
>
> Petr, that's really much better.
>
> I've already pushed the part which restructured the text upstream.

Ah, great, I have missed this.

> I'll push this part of the patch (which adds the examples) for v4.14.

Sounds good.

Thanks,
Petr