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

Unified Diff: dm-bht.c

Issue 5346003: verity: bring back in sync with the kernel (Closed) Base URL: http://git.chromium.org/git/dm-verity.git@master
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm-bht.c
diff --git a/dm-bht.c b/dm-bht.c
index 83043e64908fefc9e064c5d8ff4d86ddf87ec71d..caefe64e26472d88c405fe33be5b102fe1910099 100644
--- a/dm-bht.c
+++ b/dm-bht.c
@@ -1113,7 +1113,7 @@ int dm_bht_verify_block(struct dm_bht *bht, unsigned int block_index,
if (atomic_read(&bht->root_state) != DM_BHT_ENTRY_VERIFIED) {
unverified = dm_bht_verify_root(bht, dm_bht_compare_hash);
if (unverified) {
- DMCRIT("Failed to verify root: %d", unverified);
+ DMERR_LIMIT("Failed to verify root: %d", unverified);
return unverified;
}
}
@@ -1121,8 +1121,8 @@ int dm_bht_verify_block(struct dm_bht *bht, unsigned int block_index,
/* Now check that the digest supplied matches the leaf hash */
unverified = dm_bht_check_block(bht, block_index, digest, &entry_state);
if (unverified) {
- DMCRIT("Block check failed for %u: %d", block_index,
- unverified);
+ DMERR_LIMIT("Block check failed for %u: %d", block_index,
+ unverified);
return unverified;
}
@@ -1140,7 +1140,7 @@ int dm_bht_verify_block(struct dm_bht *bht, unsigned int block_index,
block_index,
dm_bht_compare_hash);
if (unverified)
- DMERR("Failed to verify intermediary nodes for block: %u (%d)",
+ DMERR_LIMIT("Failed to verify intermediary nodes for block: %u (%d)",
block_index, unverified);
return unverified;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698