diff options
author | Denis Cheng <crquan@gmail.com> | 2007-11-30 16:59:30 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:27 +1100 |
commit | 0138aa7591b7450ed725c81a03a9f7a1879347c9 (patch) | |
tree | 89ccf525bf0933dee0af2353a77e73106e143e9c /crypto | |
parent | 0cb07bcfc50f2d2187121f00ec890f493a53a3a7 (diff) | |
download | linux-crypto-0138aa7591b7450ed725c81a03a9f7a1879347c9.tar.gz linux-crypto-0138aa7591b7450ed725c81a03a9f7a1879347c9.zip |
[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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tcrypt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 71dc02ae..387d1053 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -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) |