Message ID | 20090730122518.995a83ba.randy.dunlap@oracle.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
From: Randy Dunlap <randy.dunlap@oracle.com> Date: Thu, 30 Jul 2009 12:25:18 -0700 > Does this need to be changed to __be32? Yes, the value passed in must be in network byte order when using %pI4. -- 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 @@ -450,7 +450,7 @@ printk(KERN_INFO "i = %u\n", i); <programlisting> __u32 ipaddress; -printk(KERN_INFO "my ip: %d.%d.%d.%d\n", NIPQUAD(ipaddress)); +printk(KERN_INFO "my ip: %pI4\n", &ipaddress); </programlisting> <para>