Skip to contentSkip to conversation

vlan: Fix typos in proc output string

PATCH In review Ferenc Wagner 2 participants 3 messages Nov 6, 2008 – Nov 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vlan: Fix typos in proc output string

---
 net/8021q/vlanproc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/8021q/vlanproc.c +1 -1
index 0feefa4..3628e0a 100644
@@ -314,7 +314,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
 		   dev_info->ingress_priority_map[6],
 		   dev_info->ingress_priority_map[7]);
 
-	seq_printf(seq, "EGRESSS priority Mappings: ");
+	seq_printf(seq, " EGRESS priority mappings: ");
 	for (i = 0; i < 16; i++) {
 		const struct vlan_priority_tci_mapping *mp
 			= dev_info->egress_priority_map[i];
Signature · 1 line
1.5.6.5
maintainer
#1 lore raw

From: Ferenc Wagner <[email protected]>
Date: Thu, 06 Nov 2008 12:18:27 +0100

Quoted 1 line

...

net/8021q/vlanproc.c static int vlandev_seq_show(struct seq_file *seq, void *offset) · line 320

Quoted 9 lines
net/8021q/vlanproc.c +1 -1
@@ -314,7 +314,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
 		   dev_info->ingress_priority_map[6],
 		   dev_info->ingress_priority_map[7]);
 
-	seq_printf(seq, "EGRESSS priority Mappings: ");
+	seq_printf(seq, " EGRESS priority mappings: ");
 	for (i = 0; i < 16; i++) {
 		const struct vlan_priority_tci_mapping *mp
 			= dev_info->egress_priority_map[i];

The typo fix is clearly correct, but adding the leading space is not. Are you simply trying to make the values line up with the INGRESS ones on the previous line?

Anyways, I'm applying this fix, but I wish you had clarified the change as it wasn't totally clear even to me.

Thanks!

#2 lore raw
Quoted 9 lines · David Miller

From: Ferenc Wagner <[email protected]>
Date: Thu, 06 Nov 2008 12:18:27 +0100

Quoted 1 line

...

Quoted 4 lines
net/8021q/vlanproc.c +0 -0
@@ -314,7 +314,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
 		   dev_info->ingress_priority_map[6],
 		   dev_info->ingress_priority_map[7]);
 
Quoted 9 lines

net/8021q/vlanproc.c static int vlandev_seq_show(struct seq_file *seq, void *offset) · line 320

Quoted 5 lines
net/8021q/vlanproc.c +1 -1
-	seq_printf(seq, "EGRESSS priority Mappings: ");
+	seq_printf(seq, " EGRESS priority mappings: ");
 	for (i = 0; i < 16; i++) {
 		const struct vlan_priority_tci_mapping *mp
 			= dev_info->egress_priority_map[i];

The typo fix is clearly correct, but adding the leading space is not. Are you simply trying to make the values line up with the INGRESS ones on the previous line?

Not as much the values, as those are separated by single spaces on the egress line but double spaces on the ingress line, except for 6 and 7, so that is a mess anyway (shall I send another most important patch to this end?) But I find the titles easier to parse when their common parts are lined up.

Quoted 2 lines

Anyways, I'm applying this fix, but I wish you had clarified the change as it wasn't totally clear even to me.

Thanks, sorry, and next time I will try to be more explicit.

Signature · 2 lines
Regards,
Feri.