From: Wilson Kok Date: Thu, 15 Oct 2015 21:53:17 +0000 (-0700) Subject: bridge: add calls to fflush in fdb and mdb print functions X-Git-Tag: v4.3.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d45bf3bafa6960720193dbf57042a3b43b73868;p=thirdparty%2Fiproute2.git bridge: add calls to fflush in fdb and mdb print functions This patch adds fflush in fdb and mdb print functions Signed-off-by: Wilson Kok Signed-off-by: Roopa Prabhu --- diff --git a/bridge/fdb.c b/bridge/fdb.c index bd7e4f924..5ea50abb3 100644 --- a/bridge/fdb.c +++ b/bridge/fdb.c @@ -163,6 +163,8 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) fprintf(fp, "offload "); fprintf(fp, "%s\n", state_n2a(r->ndm_state)); + fflush(fp); + return 0; } diff --git a/bridge/mdb.c b/bridge/mdb.c index b14bd019c..24c490354 100644 --- a/bridge/mdb.c +++ b/bridge/mdb.c @@ -135,6 +135,8 @@ int print_mdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) } } + fflush(fp); + return 0; }