summaryrefslogtreecommitdiff
path: root/tests/test_common.c
diff options
context:
space:
mode:
authorGaurav Shah <gauravsh@chromium.org>2010-04-05 15:50:00 -0700
committerGaurav Shah <gauravsh@chromium.org>2010-04-05 15:50:00 -0700
commitf3dd1a6784780b36736d2ddbd3b79b4f804906ea (patch)
treee357dfd20412202569087c5398c6d6df1499316e /tests/test_common.c
parentef7510fe405ffe3479890f9008730939987df240 (diff)
downloadvboot-f3dd1a6784780b36736d2ddbd3b79b4f804906ea.tar.gz
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
Diffstat (limited to 'tests/test_common.c')
-rw-r--r--tests/test_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_common.c b/tests/test_common.c
index 25913102..5fcdc5e7 100644
--- a/tests/test_common.c
+++ b/tests/test_common.c
@@ -67,13 +67,13 @@ FirmwareImage* GenerateTestFirmwareImage(int algorithm,
/* Generate and populate signatures. */
if (!AddFirmwareKeySignature(image, root_key_file)) {
- fprintf(stderr, "Couldn't create key signature.\n");
+ debug("Couldn't create key signature.\n");
FirmwareImageFree(image);
return NULL;
}
if (!AddFirmwareSignature(image, firmware_key_file)) {
- fprintf(stderr, "Couldn't create firmware and preamble signature.\n");
+ debug("Couldn't create firmware and preamble signature.\n");
FirmwareImageFree(image);
return NULL;
}
@@ -178,13 +178,13 @@ KernelImage* GenerateTestKernelImage(int firmware_sign_algorithm,
/* Generate and populate signatures. */
if (!AddKernelKeySignature(image, firmware_key_file)) {
- fprintf(stderr, "Couldn't create key signature.\n");
+ debug("Couldn't create key signature.\n");
KernelImageFree(image);
return NULL;
}
if (!AddKernelSignature(image, kernel_key_file)) {
- fprintf(stderr, "Couldn't create kernel option and kernel signature.\n");
+ debug("Couldn't create kernel option and kernel signature.\n");
KernelImageFree(image);
return NULL;
}