diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-21 03:26:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:33 -0500 |
commit | 2029cc2c84fb1169c80c6cf6fc375f11194ed8b5 (patch) | |
tree | 62bc0f946b844be0e932c332020f6d9d1bb1c2ef /net/8021q/vlanproc.c | |
parent | 57d3ae847d4403c5e4a35ae5f38665fff1a94c02 (diff) |
[VLAN]: checkpatch cleanups
Checkpatch cleanups, consisting mainly of overly long lines and
missing spaces.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlanproc.c')
-rw-r--r-- | net/8021q/vlanproc.c | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index b5202443b1a1..2a4e1aabb23b 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -125,10 +125,10 @@ static struct proc_dir_entry *proc_vlan_conf; | |||
125 | 125 | ||
126 | /* Strings */ | 126 | /* Strings */ |
127 | static const char *vlan_name_type_str[VLAN_NAME_TYPE_HIGHEST] = { | 127 | static const char *vlan_name_type_str[VLAN_NAME_TYPE_HIGHEST] = { |
128 | [VLAN_NAME_TYPE_RAW_PLUS_VID] = "VLAN_NAME_TYPE_RAW_PLUS_VID", | 128 | [VLAN_NAME_TYPE_RAW_PLUS_VID] = "VLAN_NAME_TYPE_RAW_PLUS_VID", |
129 | [VLAN_NAME_TYPE_PLUS_VID_NO_PAD] = "VLAN_NAME_TYPE_PLUS_VID_NO_PAD", | 129 | [VLAN_NAME_TYPE_PLUS_VID_NO_PAD] = "VLAN_NAME_TYPE_PLUS_VID_NO_PAD", |
130 | [VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD]= "VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD", | 130 | [VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD] = "VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD", |
131 | [VLAN_NAME_TYPE_PLUS_VID] = "VLAN_NAME_TYPE_PLUS_VID", | 131 | [VLAN_NAME_TYPE_PLUS_VID] = "VLAN_NAME_TYPE_PLUS_VID", |
132 | }; | 132 | }; |
133 | /* | 133 | /* |
134 | * Interface functions | 134 | * Interface functions |
@@ -178,7 +178,7 @@ err: | |||
178 | * Add directory entry for VLAN device. | 178 | * Add directory entry for VLAN device. |
179 | */ | 179 | */ |
180 | 180 | ||
181 | int vlan_proc_add_dev (struct net_device *vlandev) | 181 | int vlan_proc_add_dev(struct net_device *vlandev) |
182 | { | 182 | { |
183 | struct vlan_dev_info *dev_info = vlan_dev_info(vlandev); | 183 | struct vlan_dev_info *dev_info = vlan_dev_info(vlandev); |
184 | 184 | ||
@@ -200,7 +200,8 @@ int vlan_proc_rem_dev(struct net_device *vlandev) | |||
200 | { | 200 | { |
201 | /** NOTE: This will consume the memory pointed to by dent, it seems. */ | 201 | /** NOTE: This will consume the memory pointed to by dent, it seems. */ |
202 | if (vlan_dev_info(vlandev)->dent) { | 202 | if (vlan_dev_info(vlandev)->dent) { |
203 | remove_proc_entry(vlan_dev_info(vlandev)->dent->name, proc_vlan_dir); | 203 | remove_proc_entry(vlan_dev_info(vlandev)->dent->name, |
204 | proc_vlan_dir); | ||
204 | vlan_dev_info(vlandev)->dent = NULL; | 205 | vlan_dev_info(vlandev)->dent = NULL; |
205 | } | 206 | } |
206 | return 0; | 207 | return 0; |
@@ -275,7 +276,7 @@ static int vlan_seq_show(struct seq_file *seq, void *v) | |||
275 | nmtype = vlan_name_type_str[vlan_name_type]; | 276 | nmtype = vlan_name_type_str[vlan_name_type]; |
276 | 277 | ||
277 | seq_printf(seq, "Name-Type: %s\n", | 278 | seq_printf(seq, "Name-Type: %s\n", |
278 | nmtype ? nmtype : "UNKNOWN" ); | 279 | nmtype ? nmtype : "UNKNOWN"); |
279 | } else { | 280 | } else { |
280 | const struct net_device *vlandev = v; | 281 | const struct net_device *vlandev = v; |
281 | const struct vlan_dev_info *dev_info = vlan_dev_info(vlandev); | 282 | const struct vlan_dev_info *dev_info = vlan_dev_info(vlandev); |
@@ -297,9 +298,10 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset) | |||
297 | if (!(vlandev->priv_flags & IFF_802_1Q_VLAN)) | 298 | if (!(vlandev->priv_flags & IFF_802_1Q_VLAN)) |
298 | return 0; | 299 | return 0; |
299 | 300 | ||
300 | seq_printf(seq, "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n", | 301 | seq_printf(seq, |
301 | vlandev->name, dev_info->vlan_id, | 302 | "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n", |
302 | (int)(dev_info->flags & 1), vlandev->priv_flags); | 303 | vlandev->name, dev_info->vlan_id, |
304 | (int)(dev_info->flags & 1), vlandev->priv_flags); | ||
303 | 305 | ||
304 | seq_printf(seq, fmt, "total frames received", stats->rx_packets); | 306 | seq_printf(seq, fmt, "total frames received", stats->rx_packets); |
305 | seq_printf(seq, fmt, "total bytes received", stats->rx_bytes); | 307 | seq_printf(seq, fmt, "total bytes received", stats->rx_bytes); |
@@ -313,16 +315,16 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset) | |||
313 | dev_info->cnt_encap_on_xmit); | 315 | dev_info->cnt_encap_on_xmit); |
314 | seq_printf(seq, "Device: %s", dev_info->real_dev->name); | 316 | seq_printf(seq, "Device: %s", dev_info->real_dev->name); |
315 | /* now show all PRIORITY mappings relating to this VLAN */ | 317 | /* now show all PRIORITY mappings relating to this VLAN */ |
316 | seq_printf(seq, | 318 | seq_printf(seq, "\nINGRESS priority mappings: " |
317 | "\nINGRESS priority mappings: 0:%u 1:%u 2:%u 3:%u 4:%u 5:%u 6:%u 7:%u\n", | 319 | "0:%u 1:%u 2:%u 3:%u 4:%u 5:%u 6:%u 7:%u\n", |
318 | dev_info->ingress_priority_map[0], | 320 | dev_info->ingress_priority_map[0], |
319 | dev_info->ingress_priority_map[1], | 321 | dev_info->ingress_priority_map[1], |
320 | dev_info->ingress_priority_map[2], | 322 | dev_info->ingress_priority_map[2], |
321 | dev_info->ingress_priority_map[3], | 323 | dev_info->ingress_priority_map[3], |
322 | dev_info->ingress_priority_map[4], | 324 | dev_info->ingress_priority_map[4], |
323 | dev_info->ingress_priority_map[5], | 325 | dev_info->ingress_priority_map[5], |
324 | dev_info->ingress_priority_map[6], | 326 | dev_info->ingress_priority_map[6], |
325 | dev_info->ingress_priority_map[7]); | 327 | dev_info->ingress_priority_map[7]); |
326 | 328 | ||
327 | seq_printf(seq, "EGRESSS priority Mappings: "); | 329 | seq_printf(seq, "EGRESSS priority Mappings: "); |
328 | for (i = 0; i < 16; i++) { | 330 | for (i = 0; i < 16; i++) { |