[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>
This commit is contained in:

committed by
David S. Miller

parent
334f8b2afd
commit
a7d632b6b4
@@ -1310,7 +1310,7 @@ static void arp_format_neigh_entry(struct seq_file *seq,
|
||||
#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
|
||||
}
|
||||
#endif
|
||||
sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key));
|
||||
sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->primary_key));
|
||||
seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n",
|
||||
tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name);
|
||||
read_unlock(&n->lock);
|
||||
@@ -1323,7 +1323,7 @@ static void arp_format_pneigh_entry(struct seq_file *seq,
|
||||
int hatype = dev ? dev->type : 0;
|
||||
char tbuf[16];
|
||||
|
||||
sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->key));
|
||||
sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->key));
|
||||
seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n",
|
||||
tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00",
|
||||
dev ? dev->name : "*");
|
||||
|
Reference in New Issue
Block a user