Quoting Tvrtko Ursulin (2019-02-08 12:03:51)
> From: Tvrtko Ursulin <tvrtko.ursu...@intel.com>
> 
> A new -o command switch enables logging to a file.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursu...@intel.com>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=108689
> Cc: Eero Tamminen <eero.t.tammi...@intel.com>
> Cc: 3.1...@ukr.net
> Cc: Chris Wilson <ch...@chris-wilson.co.uk>

> -       if (output_mode == INTERACTIVE && isatty(1) != 1)
> +       if (output_mode == INTERACTIVE && (output_path || isatty(1) != 1))
>                 output_mode = STDOUT;
>  
> +       if (output_path) {

if (output_path && strcmp(output_path, "-")) { ?

"-o -" is common enough for forcing output even on the terminal.

Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to