Skip to contentSkip to conversation

bridge: mdb: Remove double space in MDB dump

PATCH Applied Ido Schimmel 3 participants 3 messages Feb 6, 2023 – Feb 7, 2023

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

PATCH 1/1 bridge: mdb: Remove double space in MDB dump

There is an extra space after the "proto" field. Remove it.

Before:

 # bridge -d mdb
 dev br0 port swp1 grp 239.1.1.1 permanent proto static  vid 1

After:

 # bridge -d mdb
 dev br0 port swp1 grp 239.1.1.1 permanent proto static vid 1
---
 bridge/mdb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bridge/mdb.c +1 -1
index f323cd091fcc..9b5503657178 100644
@@ -221,7 +221,7 @@ static void print_mdb_entry(FILE *f, int ifindex, const struct br_mdb_entry *e,
 			__u8 rtprot = rta_getattr_u8(tb[MDBA_MDB_EATTR_RTPROT]);
 			SPRINT_BUF(rtb);
 
-			print_string(PRINT_ANY, "protocol", " proto %s ",
+			print_string(PRINT_ANY, "protocol", " proto %s",
 				     rtnl_rtprot_n2a(rtprot, rtb, sizeof(rtb)));
 		}
 	}
Signature · 1 line
2.37.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Ido Schimmel

There is an extra space after the "proto" field. Remove it.

Before:

  # bridge -d mdb
  dev br0 port swp1 grp 239.1.1.1 permanent proto static  vid 1

After:

  # bridge -d mdb
  dev br0 port swp1 grp 239.1.1.1 permanent proto static vid 1
---
  bridge/mdb.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
bridge/mdb.c +0 -0
index f323cd091fcc..9b5503657178 100644

bridge/mdb.c static void print_mdb_entry(FILE *f, int ifindex, const struct br_mdb_entry *e, · line 227

Quoted 8 lines
bridge/mdb.c +1 -1
@@ -221,7 +221,7 @@ static void print_mdb_entry(FILE *f, int ifindex, const struct br_mdb_entry *e,
  			__u8 rtprot = rta_getattr_u8(tb[MDBA_MDB_EATTR_RTPROT]);
  			SPRINT_BUF(rtb);
 
-			print_string(PRINT_ANY, "protocol", " proto %s ",
+			print_string(PRINT_ANY, "protocol", " proto %s",
  				     rtnl_rtprot_n2a(rtprot, rtb, sizeof(rtb)));
  		}
  	}
#2 lore raw
In reply to Ido Schimmel
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 8 lines · On Mon, 6 Feb 2023 16:21:52 +0200 you wrote:

There is an extra space after the "proto" field. Remove it.

Before:

 # bridge -d mdb
 dev br0 port swp1 grp 239.1.1.1 permanent proto static  vid 1

[...]

Here is the summary with links:
- [iproute2-next] bridge: mdb: Remove double space in MDB dump

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=e7baae08a901

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html