projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
161a97c
)
aubinator: honor --color option when printing the header
author
Scott D Phillips
<scott.d.phillips@intel.com>
Tue, 28 Nov 2017 23:52:08 +0000
(15:52 -0800)
committer
Jordan Justen
<jordan.l.justen@intel.com>
Tue, 9 Jan 2018 05:11:11 +0000
(21:11 -0800)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/tools/aubinator.c
patch
|
blob
|
history
diff --git
a/src/intel/tools/aubinator.c
b/src/intel/tools/aubinator.c
index ed7446cf1ee8159f1fdbb3d55fa81832c830b2a7..46b0a47bcdd4cf20a9a6ddfe3ff63709d5a7d9b9 100644
(file)
--- 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);