Skip to content

Commit 671e503

Browse files
iuliana-prodanherbertx
authored andcommitted
crypto: caam/qi - use print_hex_dump_debug function to print debug messages
Use print_hex_dump_debug function to print debug messages, instead of print_hex_dump inside #ifdef DEBUG. Fixes: 6e00550 ("crypto: caam - print debug messages at debug level") Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent f6cc45c commit 671e503

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎drivers/crypto/caam/caamalg_qi.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,10 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key,
234234
dma_sync_single_for_device(jrdev->parent, ctx->key_dma,
235235
ctx->adata.keylen_pad + keys.enckeylen,
236236
ctx->dir);
237-
#ifdef DEBUG
238-
print_hex_dump(KERN_ERR, "ctx.key@" __stringify(__LINE__)": ",
239-
DUMP_PREFIX_ADDRESS, 16, 4, ctx->key,
240-
ctx->adata.keylen_pad + keys.enckeylen, 1);
241-
#endif
237+
238+
print_hex_dump_debug("ctx.key@" __stringify(__LINE__)": ",
239+
DUMP_PREFIX_ADDRESS, 16, 4, ctx->key,
240+
ctx->adata.keylen_pad + keys.enckeylen, 1);
242241

243242
skip_split_key:
244243
ctx->cdata.keylen = keys.enckeylen;

0 commit comments

Comments
 (0)