iproute2/devlink
Amit Cohen 8e6bce735a devlink: Add fflush() in cmd_mon_show_cb()
Similar to other print functions we need to flush buffered data
in order to work with pipes and output redirects.

Without it, stdout output is buffered and not written to the disk.

This is useful when writing scripts that rely on devlink-monitor output.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2020-08-22 21:13:11 -07:00
..
.gitignore devlink: ignore build result 2016-04-11 13:35:12 -07:00
Makefile iproute2: Installation errors without libmnl 2018-12-04 14:27:08 -08:00
devlink.c devlink: Add fflush() in cmd_mon_show_cb() 2020-08-22 21:13:11 -07:00
mnlg.c devlink: implement flash status monitoring 2019-09-16 07:49:25 -07:00
mnlg.h devlink: implement flash status monitoring 2019-09-16 07:49:25 -07:00