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:
parent
df5b83fe2b
commit
17034d6f63
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue