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

Unified Diff: host/lib/host_keyblock.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_keyblock.c
diff --git a/host/lib/host_keyblock.c b/host/lib/host_keyblock.c
index af59059fdd603348f9b0eba72085ab91c839ce8c..f86f35bdb5f1ec41d370d0caa81ab6b1108732a5 100644
--- a/host/lib/host_keyblock.c
+++ b/host/lib/host_keyblock.c
@@ -78,14 +78,14 @@ VbKeyBlockHeader* KeyBlockRead(const char* filename) {
block = (VbKeyBlockHeader*)ReadFile(filename, &file_size);
if (!block) {
- debug("Error reading key block file: %s\n", filename);
+ VBDEBUG(("Error reading key block file: %s\n", filename));
return NULL;
}
/* Verify the hash of the key block, since we can do that without
* the public signing key. */
if (0 != KeyBlockVerify(block, file_size, NULL)) {
- debug("Invalid key block file: filename\n", filename);
+ VBDEBUG(("Invalid key block file: filename\n", filename));
Free(block);
return NULL;
}
@@ -98,7 +98,7 @@ VbKeyBlockHeader* KeyBlockRead(const char* filename) {
int KeyBlockWrite(const char* filename, const VbKeyBlockHeader* key_block) {
if (0 != WriteFile(filename, key_block, key_block->key_block_size)) {
- debug("KeyBlockWrite() error writing key block\n");
+ VBDEBUG(("KeyBlockWrite() error writing key block\n"));
return 1;
}
« no previous file with comments | « host/lib/host_key.c ('k') | host/lib/host_misc.c » ('j') | utility/vbutil_key.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698