Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2144)

Unified Diff: src/platform/vboot_reference/tests/rollback_index_mock.c

Issue 1607006: VBoot Reference: Output debug information using debug() instead of fprintf(). (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/tests/rollback_index_mock.c
diff --git a/src/platform/vboot_reference/tests/rollback_index_mock.c b/src/platform/vboot_reference/tests/rollback_index_mock.c
index 37dde48c896a97b99db072b8a69e0e5fbbee5f55..9d67e1fbb283496e7d84806142a912c7ab2fa256 100644
--- a/src/platform/vboot_reference/tests/rollback_index_mock.c
+++ b/src/platform/vboot_reference/tests/rollback_index_mock.c
@@ -17,7 +17,7 @@ uint16_t g_kernel_version = 0;
void SetupTPM(void) {
#ifndef NDEBUG
- fprintf(stderr, "Rollback Index Library Mock: TPM initialized.\n");
+ debug("Rollback Index Library Mock: TPM initialized.\n");
#endif
}
@@ -55,13 +55,13 @@ int WriteStoredVersion(int type, uint16_t version) {
break;
}
#ifndef NDEBUG
- fprintf(stderr, "Rollback Index Library Mock: Stored Version written.\n");
+ debug("Rollback Index Library Mock: Stored Version written.\n");
#endif
return 1;
}
void LockStoredVersion(int type) {
#ifndef NDEBUG
- fprintf(stderr, "Rollback Index Library Mock: Version Locked.\n");
+ debug("Rollback Index Library Mock: Version Locked.\n");
#endif
}

Powered by Google App Engine
This is Rietveld 408576698