Skip to contentSkip to conversation

driver: net: ppp: change 8% to %s for seq_printf of pppoe_seq_show

PATCH New Chen Gang 1 participant 1 message Nov 5, 2012

Subsystems (3)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 driver: net: ppp: change 8% to %s for seq_printf of pppoe_seq_show

the length of po->pppoe_pa.dev is 16 (IFNAMSIZ)
in seq_printf, it is not suitable to use %8s for po->pppoe_pa.dev. so change it to %s, since each line has not been solid any more.

---
 drivers/net/ppp/pppoe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ppp/pppoe.c +0 -0
index 20f31d0..7e89710 100644
@@ -1009,7 +1009,7 @@ static int pppoe_seq_show(struct seq_file *seq,

void *v)
po = v;
dev_name = po->pppoe_pa.dev;

- seq_printf(seq, "%08X %pM %8s\n",
+ seq_printf(seq, "%08X %pM %s\n",
po->pppoe_pa.sid, po->pppoe_pa.remote, dev_name);
out:
return 0;

Signature · 1 line
1.7.9.5