<div dir="ltr"><span style="font-size:12.8px">Reviewed-by: </span><span style="font-size:12.8px">Julien Isorce <</span><a href="mailto:jisorce@oblong.com" style="font-size:12.8px">jisorce@oblong.com</a><span style="font-size:12.8px">></span><br><div class="gmail_extra"><br><div class="gmail_quote">On 5 April 2017 at 20:03, 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>
v2: check that fopen succeeded  (Julien)<br>
<br>
Tested-by: Julien Isorce <<a href="mailto:jisorce@oblong.com">jisorce@oblong.com</a>><br>
---<br>
 src/gallium/auxiliary/hud/hud_<wbr>context.c | 2 ++<br>
 1 file changed, 2 insertions(+)<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..f492c81fe6 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,8 @@ 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>
+         if (gr->fd)<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>