aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-14 07:09:00 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 07:09:00 -0400
commita7d632b6b4ad1c92746ed409e41f9dc571ec04e2 (patch)
tree90e6aa51a9df50aa4a437749e89356ab15a0ff5f /net/ipv4/arp.c
parent334f8b2afd9652e20f67ddee4fec483ed860425b (diff)
[IPV4]: Use NIPQUAD_FMT to format ipv4 addresses.
And use %u to format port. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r--net/ipv4/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 3ce2e137e7bc..68b72a7a1806 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1310,7 +1310,7 @@ static void arp_format_neigh_entry(struct seq_file *seq,
1310#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE) 1310#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
1311 } 1311 }
1312#endif 1312#endif
1313 sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key)); 1313 sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->primary_key));
1314 seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", 1314 seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n",
1315 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); 1315 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name);
1316 read_unlock(&n->lock); 1316 read_unlock(&n->lock);
@@ -1323,7 +1323,7 @@ static void arp_format_pneigh_entry(struct seq_file *seq,
1323 int hatype = dev ? dev->type : 0; 1323 int hatype = dev ? dev->type : 0;
1324 char tbuf[16]; 1324 char tbuf[16];
1325 1325
1326 sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->key)); 1326 sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->key));
1327 seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", 1327 seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n",
1328 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", 1328 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00",
1329 dev ? dev->name : "*"); 1329 dev ? dev->name : "*");