Re: [PATCH] [RESEND] crypto test: use print_hex_dump from instead

2007-11-26 Thread Herbert Xu
On Mon, Nov 26, 2007 at 10:01:44AM -0800, Joe Perches wrote: > On Tue, 2007-11-27 at 01:28 +0800, Denis Cheng wrote: > > -static void hexdump(unsigned char *buf, unsigned int len) > > -{ > > - while (len--) > > - printk("%02x", *buf++); > > - > > - printk("\n"); > > -} > > #define he

Re: [PATCH] [RESEND] crypto test: use print_hex_dump from instead

2007-11-26 Thread Herbert Xu
On Tue, Nov 27, 2007 at 01:28:15AM +0800, Denis Cheng wrote: > this patch is against cryptodev-2.6, and have passed scripts/checkpatch.pl > > KERN_DEBUG is stripped out, this acts more like the original in tcrypto.c > > and the last parameter "bool ascii" set to zero to disable ascii output, > th

Re: [PATCH] [RESEND] crypto test: use print_hex_dump from instead

2007-11-26 Thread Joe Perches
On Tue, 2007-11-27 at 01:28 +0800, Denis Cheng wrote: > -static void hexdump(unsigned char *buf, unsigned int len) > -{ > - while (len--) > - printk("%02x", *buf++); > - > - printk("\n"); > -} #define hexdump(buf, len) \ print_hex_dump(KERN_CONT, "", DUMP_PREFIX_NONE, 1

[PATCH] [RESEND] crypto test: use print_hex_dump from instead

2007-11-26 Thread Denis Cheng
this patch is against cryptodev-2.6, and have passed scripts/checkpatch.pl KERN_DEBUG is stripped out, this acts more like the original in tcrypto.c and the last parameter "bool ascii" set to zero to disable ascii output, this could keep it happy on Unicode terminals. Cc: Randy Dunlap <[EMAIL PR