intelmetool: Print colored capabilities

In general more ME capabilities are considered harmfull, useless or
unwanted. Therefore an easy overview can be obtained by coloring in red
and green.

Taken from Change with id:
Ifeec8e20fa8efc35d7db4c6a84be1f118dccfc4a
Add bootguard information dump support
https://review.coreboot.org/#/c/16328/

Change-Id: Ia911cc935d512174399aaf93bba982e071942212
Signed-off-by: Maximilian Schander <maxschander@googlemail.com>
Reviewed-on: https://review.coreboot.org/22217
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
This commit is contained in:
Maximilian Schander 2017-10-28 20:19:02 +02:00 committed by Martin Roth
parent df5b83fe2b
commit 17034d6f63
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ int mkhi_get_fw_version(void)
static inline void print_cap(const char *name, int state) static inline void print_cap(const char *name, int state)
{ {
printf("ME Capability: %-30s : %s\n", printf("ME Capability: %-30s : %s\n",
name, state ? "ON" : "OFF"); name, state ? CRED "ON" RESET : CGRN "OFF" RESET);
} }
/* Get ME Firmware Capabilities */ /* Get ME Firmware Capabilities */