summaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-07-30 13:10:50 -0700
committerDavid S. Miller <davem@davemloft.net>2009-07-30 13:10:50 -0700
commit2a8aaacda5097fa92a39948da1b4c6614b6e150e (patch)
tree5ab96a21b4f06a300622fb2c145baffdc4aaa35c /Documentation/DocBook
parenta541f8401d8e9113a89ee902cb8d8e412d6d3569 (diff)
downloadkernel-crypto-2a8aaacda5097fa92a39948da1b4c6614b6e150e.tar.gz
kernel-crypto-2a8aaacda5097fa92a39948da1b4c6614b6e150e.tar.xz
kernel-crypto-2a8aaacda5097fa92a39948da1b4c6614b6e150e.zip
docbook: fix printk of ip address
Use the %pI4 format string instead of %d.%d.%d.%d and NIPQUAD. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r--Documentation/DocBook/kernel-hacking.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/DocBook/kernel-hacking.tmpl b/Documentation/DocBook/kernel-hacking.tmpl
index a50d6cd5857..992e67e6be7 100644
--- a/Documentation/DocBook/kernel-hacking.tmpl
+++ b/Documentation/DocBook/kernel-hacking.tmpl
@@ -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>