Re: [PATCH] soc: Convert to using %pOFn instead of device_node.name

From
Li Yang <hidden>
Date
2018-08-28 22:29:31
Also in
linux-arm-kernel, lkml
Reply to
Tyrel Datwyler, 2018-08-28
On Tue, Aug 28, 2018 at 5:16 PM Tyrel Datwyler
[off-list ref] wrote:
On 08/28/2018 11:48 AM, Li Yang wrote:
quoted
On Mon, Aug 27, 2018 at 8:57 PM Rob Herring [off-list ref] wrote:
quoted
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.
Please forgive my ignorance, but what is this format specifier do
exactly?   I cannot find anything listed in the printf specification
matching this.  Is this something newly introduced?

Leo
From Documentation/core-api/printk-formats.rst:
I was trying to find it in the standard c format specifier.  :(
Thanks a lot for the pointer.
kobjects
--------

::

        %pOF[fnpPcCF]


For printing kobject based structs (device nodes). Default behaviour is
equivalent to %pOFf.

        - f - device node full_name
        - n - device node name
        - p - device node phandle
        - P - device node path spec (name + @unit)
        - F - device node flags
        - c - major compatible string
        - C - full compatible string


-Tyrel
Thread (9 messages) 9 messages, 7 authors, last reply 2018-09-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help