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

Unified Diff: src/platform/vboot_reference/tests/kernel_rollback_tests.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/kernel_rollback_tests.c
diff --git a/src/platform/vboot_reference/tests/kernel_rollback_tests.c b/src/platform/vboot_reference/tests/kernel_rollback_tests.c
index 08f874cae6d849807f303892f152378e541c75a7..c821ee8e98907498d8f796b1739387878f50a23f 100644
--- a/src/platform/vboot_reference/tests/kernel_rollback_tests.c
+++ b/src/platform/vboot_reference/tests/kernel_rollback_tests.c
@@ -58,7 +58,7 @@ void VerifyKernelDriverTest(void) {
* the full blown kernel boot logic. Updates to the kernel attributes
* in the paritition table are not tested.
*/
- fprintf(stderr, "Kernel A boot priority(15) > Kernel B boot priority(1)\n");
+ debug("Kernel A boot priority(15) > Kernel B boot priority(1)\n");
TEST_EQ(VerifyKernelDriver_f(firmware_key_pub,
&valid_kernelA, &valid_kernelB,
DEV_MODE_DISABLED),
@@ -84,7 +84,7 @@ void VerifyKernelDriverTest(void) {
"(Corrupt Kernel A (current version)\n"
" Corrupt Kernel B (current version) runs Recovery):");
- fprintf(stderr, "\nSwapping boot priorities...\n"
+ debug("\nSwapping boot priorities...\n"
"Kernel B boot priority(15) > Kernel A boot priority(1)\n");
valid_kernelA.boot_priority = corrupt_kernelA.boot_priority = 1;
valid_kernelB.boot_priority = corrupt_kernelB.boot_priority = 15;
@@ -113,7 +113,7 @@ void VerifyKernelDriverTest(void) {
"(Corrupt Kernel A (current version)\n"
" Corrupt Kernel B (current version) runs Recovery):");
- fprintf(stderr, "\nUpdating stored version information. Obsoleting "
+ debug("\nUpdating stored version information. Obsoleting "
"exiting kernel images.\n");
g_kernel_key_version = 2;
g_kernel_version = 2;
@@ -124,7 +124,7 @@ void VerifyKernelDriverTest(void) {
"(Valid Kernel A (old version)\n"
" Valid Kernel B (old version) runs Recovery):");
- fprintf(stderr, "\nGenerating updated Kernel A blob with "
+ debug("\nGenerating updated Kernel A blob with "
"new version.\n");
Free(valid_kernelA.kernel_blob);
valid_kernelA.kernel_blob = GenerateRollbackTestKernelBlob(3, 3, 0);

Powered by Google App Engine
This is Rietveld 408576698