Message ID | 20090730123746.1fe58340.randy.dunlap@oracle.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Randy Dunlap <randy.dunlap@oracle.com> Date: Thu, 30 Jul 2009 12:37:46 -0700 > From: Tobias Klauser <tklauser@distanz.ch> > > 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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- linux-2.6.31-rc4-git3.orig/Documentation/DocBook/kernel-hacking.tmpl +++ linux-2.6.31-rc4-git3/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", &ipaddress); </programlisting> <para>