提交 a10e1194 编写于 作者: D Denis Cheng 提交者: Herbert Xu

[CRYPTO] tcrypt: Use print_hex_dump from linux/kernel.h

These utilities implemented in lib/hexdump.c are more handy, please use this.
Signed-off-by: NDenis Cheng <crquan@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 d2456c66
...@@ -89,10 +89,9 @@ static char *check[] = { ...@@ -89,10 +89,9 @@ static char *check[] = {
static void hexdump(unsigned char *buf, unsigned int len) static void hexdump(unsigned char *buf, unsigned int len)
{ {
while (len--) print_hex_dump(KERN_CONT, "", DUMP_PREFIX_OFFSET,
printk("%02x", *buf++); 16, 1,
buf, len, false);
printk("\n");
} }
static void tcrypt_complete(struct crypto_async_request *req, int err) static void tcrypt_complete(struct crypto_async_request *req, int err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册