Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a10e11946bb2d59516a5252b1b588e2963a13ebe
Commit:     a10e11946bb2d59516a5252b1b588e2963a13ebe
Parent:     d2456c66236c15d6462f1ac751cdbd48a34e9704
Author:     Denis Cheng <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 30 16:59:30 2007 +1100
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Fri Jan 11 08:16:27 2008 +1100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/tcrypt.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 71dc02a..387d105 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to