[PATCH] clocksource: Convert to using %pOF instead of full_name

Rob Herring robh at kernel.org
Wed Jul 19 08:28:51 PDT 2017


On Wed, Jul 19, 2017 at 3:55 AM, Marc Gonzalez
<marc_gonzalez at sigmadesigns.com> wrote:
> On 18/07/2017 23:42, Rob Herring wrote:
>
>> Now that we have a custom printf format specifier, convert users of
>> full_name to use %pOF instead. This is preparation to remove storing
>> of the full path string for each node.
>
> Nice. For my own reference:
> http://elixir.free-electrons.com/linux/v4.13-rc1/source/Documentation/printk-formats.txt#L349
>
> About removing the full path. Does this mean that ultimately
> %pOF will print just the name? And the 'f' spec will disappear?

No, the vsprintf code is already designed to print the full path
whether full_name is the full path or just the basename. %pOF is just
the default. "f" is needed so you can combine it with the other
specifiers.

> Is this done to save memory?

Yes. That's the next step.

Rob



More information about the linux-arm-kernel mailing list