Skip to content
Snippets Groups Projects
Commit 241fd0b5 authored by Øyvind Harboe's avatar Øyvind Harboe
Browse files

logging: turn of stdout/stderr buffering


with this buffering disabled fancier logging scripts will
be able to process each line as it is output.

Signed-off-by: default avatarØyvind Harboe <oyvind.harboe@zylin.com>
parent 61780558
No related branches found
No related tags found
No related merge requests found
...@@ -35,5 +35,9 @@ ...@@ -35,5 +35,9 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* disable buffering otherwise piping to logs causes problems work */
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
return openocd_main(argc, argv); return openocd_main(argc, argv);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment