aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-11-30 00:59:30 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:27 -0500
commita10e11946bb2d59516a5252b1b588e2963a13ebe (patch)
tree2bbd98b2365495e71223dc2246292bb4326a16ed /crypto
parentd2456c66236c15d6462f1ac751cdbd48a34e9704 (diff)
[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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 71dc02ae8a43..387d1053f11a 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -89,10 +89,9 @@ static char *check[] = {
89 89
90static void hexdump(unsigned char *buf, unsigned int len) 90static void hexdump(unsigned char *buf, unsigned int len)
91{ 91{
92 while (len--) 92 print_hex_dump(KERN_CONT, "", DUMP_PREFIX_OFFSET,
93 printk("%02x", *buf++); 93 16, 1,
94 94 buf, len, false);
95 printk("\n");
96} 95}
97 96
98static void tcrypt_complete(struct crypto_async_request *req, int err) 97static void tcrypt_complete(struct crypto_async_request *req, int err)