mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 18:44:22 +00:00
fix(measured-boot): fix verbosity level of RSS digests traces
Most traces displayed by log_measurement() use the INFO verbosity level. Only the digests are unconditionally printed, regardless of the verbosity level. As a result, when the verbosity level is set lower than INFO (typically in release mode), only the digests are printed, which look weird and out of context. Change-Id: I0220977c35dcb636f1510d8a7a0a9e3d92548bdc Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
This commit is contained in:
parent
100da90ca8
commit
2abd317d27
1 changed files with 3 additions and 1 deletions
|
@ -14,8 +14,9 @@
|
|||
|
||||
#include "measured_boot_private.h"
|
||||
|
||||
static void print_byte_array(const uint8_t *array, size_t len)
|
||||
static void print_byte_array(const uint8_t *array __unused, size_t len __unused)
|
||||
{
|
||||
#if LOG_LEVEL >= LOG_LEVEL_INFO
|
||||
size_t i;
|
||||
|
||||
if (array == NULL || len == 0U) {
|
||||
|
@ -31,6 +32,7 @@ static void print_byte_array(const uint8_t *array, size_t len)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void log_measurement(uint8_t index,
|
||||
|
|
Loading…
Add table
Reference in a new issue