]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - bridge/mdb.c
bridge: Prevent a double space in bridge mdb show
[mirror_iproute2.git] / bridge / mdb.c
index 62dc8a0c58c3b6956f535c9cb397ecfe75b112f8..58c20b82b8a63b15a16bb79fceafe085e91cc122 100644 (file)
@@ -166,12 +166,12 @@ static void print_mdb_entry(FILE *f, int ifindex, struct br_mdb_entry *e,
                if (mdb_flags)
                        jsonw_end_array(jw_global);
        } else{
-               fprintf(f, "dev %s port %s grp %s %s %s",
+               fprintf(f, "dev %s port %s grp %s %s%s",
                        ll_index_to_name(ifindex),
                        ll_index_to_name(e->ifindex),
                        inet_ntop(af, src, abuf, sizeof(abuf)),
                        (e->state & MDB_PERMANENT) ? "permanent" : "temp",
-                       (e->flags & MDB_FLAGS_OFFLOAD) ? "offload" : "");
+                       (e->flags & MDB_FLAGS_OFFLOAD) ? " offload" : "");
        }
        if (e->vid) {
                if (jw_global)