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

Unified Diff: host/lib/host_misc.c

Issue 2871033: Switch to using .vbprivk for signing everything now. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: Okay, now tests pass again. Created 10 years, 6 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: host/lib/host_misc.c
diff --git a/host/lib/host_misc.c b/host/lib/host_misc.c
index 2620df7a98e444ebdd3e96e20277019c112768c5..d8f52970202ff83e4a9e920453c96d6ddc98fe61 100644
--- a/host/lib/host_misc.c
+++ b/host/lib/host_misc.c
@@ -24,7 +24,7 @@ uint8_t* ReadFile(const char* filename, uint64_t* size) {
f = fopen(filename, "rb");
if (!f) {
- debug("Unable to open file %s\n", filename);
+ VBDEBUG(("Unable to open file %s\n", filename));
return NULL;
}
@@ -39,7 +39,7 @@ uint8_t* ReadFile(const char* filename, uint64_t* size) {
}
if(1 != fread(buf, *size, 1, f)) {
- debug("Unable to read from file %s\n", filename);
+ VBDEBUG(("Unable to read from file %s\n", filename));
fclose(f);
Free(buf);
return NULL;
@@ -53,12 +53,12 @@ uint8_t* ReadFile(const char* filename, uint64_t* size) {
int WriteFile(const char* filename, const void *data, uint64_t size) {
FILE *f = fopen(filename, "wb");
if (!f) {
- debug("Unable to open file %s\n", filename);
+ VBDEBUG(("Unable to open file %s\n", filename));
return 1;
}
if (1 != fwrite(data, size, 1, f)) {
- debug("Unable to write to file %s\n", filename);
+ VBDEBUG(("Unable to write to file %s\n", filename));
fclose(f);
unlink(filename); /* Delete any partial file */
}
« no previous file with comments | « host/lib/host_keyblock.c ('k') | host/lib/host_signature.c » ('j') | utility/vbutil_key.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698