[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090730122518.995a83ba.randy.dunlap@oracle.com>
Date: Thu, 30 Jul 2009 12:25:18 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: netdev <netdev@...r.kernel.org>
Cc: davem@...emloft.net, Tobias Klauser <tklauser@...tanz.ch>
Subject: [PATCH] docbook: fix printk of ip address
Does this need to be changed to __be32?
---
From: Tobias Klauser <tklauser@...tanz.ch>
Use the %pI4 format string instead of %d.%d.%d.%d and NIPQUAD.
Signed-off-by: Tobias Klauser <tklauser@...tanz.ch>
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
Documentation/DocBook/kernel-hacking.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 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>
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists