Commit 2a8aaacd authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

docbook: fix printk of ip address

Use the %pI4 format string instead of %d.%d.%d.%d and NIPQUAD.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a541f840
...@@ -449,8 +449,8 @@ printk(KERN_INFO "i = %u\n", i); ...@@ -449,8 +449,8 @@ printk(KERN_INFO "i = %u\n", i);
</para> </para>
<programlisting> <programlisting>
__u32 ipaddress; __be32 ipaddress;
printk(KERN_INFO "my ip: %d.%d.%d.%d\n", NIPQUAD(ipaddress)); printk(KERN_INFO "my ip: %pI4\n", &amp;ipaddress);
</programlisting> </programlisting>
<para> <para>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment