Skip to content
Snippets Groups Projects
Commit 2a8aaacd authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -449,8 +449,8 @@ printk(KERN_INFO "i = %u\n", i);
</para>
<programlisting>
__u32 ipaddress;
printk(KERN_INFO "my ip: %d.%d.%d.%d\n", NIPQUAD(ipaddress));
__be32 ipaddress;
printk(KERN_INFO "my ip: %pI4\n", &amp;ipaddress);
</programlisting>
<para>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment