<div dir="ltr"><div>I confirm it works, awesome!  Thx!</div><div>Should you check that fopen succeeded  ? because I think setvbuf would crash otherwise. </div><div>That's said:</div><div>Tested-by: Julien Isorce <<a href="mailto:jisorce@oblong.com">jisorce@oblong.com</a>><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2017 at 21:52, Edmondo Tommasina <span dir="ltr"><<a href="mailto:edmondo.tommasina@gmail.com" target="_blank">edmondo.tommasina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Flush the HUD value streams to the dump files after every newline.<br>
---<br>
 src/gallium/auxiliary/hud/hud_<wbr>context.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/gallium/auxiliary/hud/<wbr>hud_context.c b/src/gallium/auxiliary/hud/<wbr>hud_context.c<br>
index 29ef9eee31..633e3650cc 100644<br>
--- a/src/gallium/auxiliary/hud/<wbr>hud_context.c<br>
+++ b/src/gallium/auxiliary/hud/<wbr>hud_context.c<br>
@@ -972,6 +972,7 @@ hud_graph_set_dump_file(struct hud_graph *gr)<br>
          strcat(dump_file, "/");<br>
          strcat_without_spaces(dump_<wbr>file, gr->name);<br>
          gr->fd = fopen(dump_file, "w+");<br>
+         setvbuf(gr->fd, NULL, _IOLBF, 0);<br>
          free(dump_file);<br>
       }<br>
    }<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div></div>