소스 검색

[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: Denis Cheng <crquan@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Denis Cheng 17 년 전
부모
커밋
a10e11946b
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      crypto/tcrypt.c

+ 3 - 4
crypto/tcrypt.c

@@ -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--)
-		printk("%02x", *buf++);
-
-	printk("\n");
+	print_hex_dump(KERN_CONT, "", DUMP_PREFIX_OFFSET,
+			16, 1,
+			buf, len, false);
 }
 }
 
 
 static void tcrypt_complete(struct crypto_async_request *req, int err)
 static void tcrypt_complete(struct crypto_async_request *req, int err)