summaryrefslogtreecommitdiffstats
path: root/src/intel/tools
diff options
context:
space:
mode:
authorScott D Phillips <[email protected]>2017-11-28 15:52:08 -0800
committerJordan Justen <[email protected]>2018-01-08 21:11:11 -0800
commit4f0a2ff4c12c7a7a45c7a360a67f82a859a9634e (patch)
tree1e7940466c55fbd23ed4e180cba71b0fdf7c0f6b /src/intel/tools
parent161a97c3d5e9195dce064d35446caec5ab59943d (diff)
aubinator: honor --color option when printing the header
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel/tools')
-rw-r--r--src/intel/tools/aubinator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index ed7446cf1ee..46b0a47bcdd 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -192,8 +192,12 @@ handle_trace_header(uint32_t *p)
gen_batch_decode_ctx_init(&batch_ctx, &devinfo, outfile, batch_flags,
xml_path, get_gen_batch_bo, NULL);
+ char *color = GREEN_HEADER, *reset_color = NORMAL;
+ if (option_color == COLOR_NEVER)
+ color = reset_color = "";
+
fprintf(outfile, "%sAubinator: Intel AUB file decoder.%-80s%s\n",
- GREEN_HEADER, "", NORMAL);
+ color, "", reset_color);
if (input_file)
fprintf(outfile, "File name: %s\n", input_file);