From: Tobias Klauser Date: Thu, 30 Jul 2009 20:10:50 +0000 (-0700) Subject: docbook: fix printk of ip address X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a8aaacda5097fa92a39948da1b4c6614b6e150e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git docbook: fix printk of ip address Use the %pI4 format string instead of %d.%d.%d.%d and NIPQUAD. Signed-off-by: Tobias Klauser Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller --- diff --git a/Documentation/DocBook/kernel-hacking.tmpl b/Documentation/DocBook/kernel-hacking.tmpl index a50d6cd58573..992e67e6be7f 100644 --- a/Documentation/DocBook/kernel-hacking.tmpl +++ b/Documentation/DocBook/kernel-hacking.tmpl @@ -449,8 +449,8 @@ printk(KERN_INFO "i = %u\n", i); -__u32 ipaddress; -printk(KERN_INFO "my ip: %d.%d.%d.%d\n", NIPQUAD(ipaddress)); +__be32 ipaddress; +printk(KERN_INFO "my ip: %pI4\n", &ipaddress);