Skip to content

Commit

Permalink
[CRYPTO] tcrypt: Use print_hex_dump from linux/kernel.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis Cheng authored and Herbert Xu committed Jan 10, 2008
1 parent d2456c6 commit a10e119
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ static char *check[] = {

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)
Expand Down

0 comments on commit a10e119

Please sign in to comment.