net: easy removals of HIPQUAD using %pI4 format
As a bonus, removes some unnecessary byteswapping. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

کامیت شده توسط
David S. Miller

والد
9edb8bb68b
کامیت
8cf14e3837
@@ -3221,7 +3221,6 @@ static void bond_info_show_master(struct seq_file *seq)
|
||||
struct bonding *bond = seq->private;
|
||||
struct slave *curr;
|
||||
int i;
|
||||
u32 target;
|
||||
|
||||
read_lock(&bond->curr_slave_lock);
|
||||
curr = bond->curr_active_slave;
|
||||
@@ -3275,8 +3274,7 @@ static void bond_info_show_master(struct seq_file *seq)
|
||||
continue;
|
||||
if (printed)
|
||||
seq_printf(seq, ",");
|
||||
target = ntohl(bond->params.arp_targets[i]);
|
||||
seq_printf(seq, " %d.%d.%d.%d", HIPQUAD(target));
|
||||
seq_printf(seq, " %pI4", &bond->params.arp_targets[i]);
|
||||
printed = 1;
|
||||
}
|
||||
seq_printf(seq, "\n");
|
||||
|
مرجع در شماره جدید
Block a user