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

Unified Diff: src/platform/vboot_reference/tests/kernel_verify_benchmark.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_verify_benchmark.c
diff --git a/src/platform/vboot_reference/tests/kernel_verify_benchmark.c b/src/platform/vboot_reference/tests/kernel_verify_benchmark.c
index 369785c8fc1151a48ab203a8f0cb2fb3598e2416..9ee508c395cc51a8badb958513b71af62ae3d6d1 100644
--- a/src/platform/vboot_reference/tests/kernel_verify_benchmark.c
+++ b/src/platform/vboot_reference/tests/kernel_verify_benchmark.c
@@ -73,7 +73,7 @@ int SpeedTestAlgorithm(int firmware_sign_algorithm,
kernel_key_size);
kernel_sign_key = BufferFromFile(file_name, &len);
if (!kernel_sign_key) {
- fprintf(stderr, "Couldn't read pre-processed public kernel signing key.\n");
+ debug("Couldn't read pre-processed public kernel signing key.\n");
error_code = 1;
goto cleanup;
}
@@ -89,7 +89,7 @@ int SpeedTestAlgorithm(int firmware_sign_algorithm,
firmware_sign_key_file,
kernel_sign_key_file);
if (!kernel_blobs[i]) {
- fprintf(stderr, "Couldn't generate test firmware images.\n");
+ debug("Couldn't generate test firmware images.\n");
error_code = 1;
goto cleanup;
}
@@ -100,7 +100,7 @@ int SpeedTestAlgorithm(int firmware_sign_algorithm,
firmware_key_size);
firmware_key_blob = BufferFromFile(file_name, &len);
if (!firmware_key_blob) {
- fprintf(stderr, "Couldn't read pre-processed firmware public key.\n");
+ debug("Couldn't read pre-processed firmware public key.\n");
error_code = 1;
goto cleanup;
}
@@ -111,7 +111,7 @@ int SpeedTestAlgorithm(int firmware_sign_algorithm,
for (j = 0; j < NUM_OPERATIONS; ++j) {
if (VERIFY_KERNEL_SUCCESS !=
VerifyKernel(firmware_key_blob, kernel_blobs[i], 0))
- fprintf(stderr, "Warning: Kernel Verification Failed.\n");
+ debug("Warning: Kernel Verification Failed.\n");
}
StopTimer(&ct);
msecs = (float) GetDurationMsecs(&ct) / NUM_OPERATIONS;
« no previous file with comments | « src/platform/vboot_reference/tests/kernel_rollback_tests.c ('k') | src/platform/vboot_reference/tests/rollback_index_mock.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698