auxilary/os: allow appending to GALLIUM_LOG_FILE
authorBrian Paul <brianp@vmware.com>
Wed, 15 Jun 2016 02:35:53 +0000 (20:35 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Jun 2016 23:16:42 +0000 (17:16 -0600)
commitbb1292e2261fa591cf66de443a1b0d4eb7f65cb2
treeefbde36bbd61ec6e56e066285b59362bb5b67166
parentc99a0a8bcece2870f3e93328ab520efc2c9f7983
auxilary/os: allow appending to GALLIUM_LOG_FILE

If the log file specified by the GALLIUM_LOG_FILE begins with '+', open
the file in append mode.  This is useful to log all gallium output for
an entire piglit run, for example.

v2: put GALLIUM_LOG_FILE support inside an #ifdef DEBUG block.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/os/os_misc.c