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; |
} |