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 <wkok@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
Wilson Kok 2015-10-15 14:53:17 -07:00 committed by Stephen Hemminger
parent ccaf6eb5cc
commit 4d45bf3baf
2 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,8 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, "offload "); fprintf(fp, "offload ");
fprintf(fp, "%s\n", state_n2a(r->ndm_state)); fprintf(fp, "%s\n", state_n2a(r->ndm_state));
fflush(fp);
return 0; return 0;
} }

View File

@ -135,6 +135,8 @@ int print_mdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
} }
} }
fflush(fp);
return 0; return 0;
} }