net: replace NIPQUAD() in net/*/
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u can be replaced with %pI4 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
14d5e834f6
commit
21454aaad3
@@ -822,8 +822,8 @@ static void atmarp_info(struct seq_file *seq, struct net_device *dev,
|
||||
seq_printf(seq, "%-6s%-4s%-4s%5ld ",
|
||||
dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp);
|
||||
|
||||
off = scnprintf(buf, sizeof(buf) - 1, "%d.%d.%d.%d",
|
||||
NIPQUAD(entry->ip));
|
||||
off = scnprintf(buf, sizeof(buf) - 1, "%pI4",
|
||||
&entry->ip);
|
||||
while (off < 16)
|
||||
buf[off++] = ' ';
|
||||
buf[off] = '\0';
|
||||
|
Reference in New Issue
Block a user