From 4d45bf3bafa6960720193dbf57042a3b43b73868 Mon Sep 17 00:00:00 2001 From: Wilson Kok Date: Thu, 15 Oct 2015 14:53:17 -0700 Subject: [PATCH] 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 --- bridge/fdb.c | 2 ++ bridge/mdb.c | 2 ++ 2 files changed, 4 insertions(+) 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; } -- 2.47.2