mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 10:14:55 +00:00
VBoot Reference: Output debug information using debug() instead of fprintf().
This should make it easier to switch off debug messages if needed. TESTS=builds fine, autotest builds fine (using both arm/x86-generic) Review URL: http://codereview.chromium.org/1607006
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
#include "rollback_index.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <tss/tcs.h>
|
||||
|
||||
#include "utility.h"
|
||||
#include "tlcl.h"
|
||||
|
||||
uint16_t g_firmware_key_version = 0;
|
||||
@@ -23,7 +23,7 @@ static void InitializeSpaces(void) {
|
||||
uint16_t zero = 0;
|
||||
uint32_t perm = TPM_NV_PER_WRITE_STCLEAR | TPM_NV_PER_PPWRITE;
|
||||
|
||||
fprintf(stderr, "Initializing spaces\n");
|
||||
debug("Initializing spaces\n");
|
||||
TlclSetNvLocked(); /* useful only the first time */
|
||||
|
||||
TlclDefineSpace(FIRMWARE_KEY_VERSION_NV_INDEX, perm, sizeof(uint16_t));
|
||||
@@ -78,7 +78,7 @@ void SetupTPM(void) {
|
||||
TlclSelftestfull();
|
||||
TlclAssertPhysicalPresence();
|
||||
if (!GetTPMRollbackIndices()) {
|
||||
fprintf(stderr, "Ho Ho Ho! We must jump to recovery.");
|
||||
debug("Ho Ho Ho! We must jump to recovery.");
|
||||
EnterRecovery();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user