projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a541f84
)
docbook: fix printk of ip address
author
Tobias Klauser
<tklauser@distanz.ch>
Thu, 30 Jul 2009 20:10:50 +0000
(13:10 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 30 Jul 2009 20:10:50 +0000
(13:10 -0700)
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>
Documentation/DocBook/kernel-hacking.tmpl
patch
|
blob
|
history
diff --git
a/Documentation/DocBook/kernel-hacking.tmpl
b/Documentation/DocBook/kernel-hacking.tmpl
index a50d6cd58573b63be92acbc7f5ea06d0b884844f..992e67e6be7fbf34e3259bafaec97918505fbede 100644
(file)
--- 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>
-__
u
32 ipaddress;
-printk(KERN_INFO "my ip: %
d.%d.%d.%d\n", NIPQUAD(ipaddress)
);
+__
be
32 ipaddress;
+printk(KERN_INFO "my ip: %
pI4\n", &ipaddress
);
</programlisting>
<para>