Since the goal is to compare to NIST test vectors, which are printed on a single like without spaces, this comes much closer. Signed-off-by: George Spelvin <linux@xxxxxxxxxxx> --- crypto/ansi_cprng.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto/ansi_cprng.c b/crypto/ansi_cprng.c index 143e0cfa..b54e4e75 100644 --- a/crypto/ansi_cprng.c +++ b/crypto/ansi_cprng.c @@ -60,10 +60,7 @@ static int dbg; static void hexdump(char *note, unsigned char *buf, unsigned int len) { if (dbg) { - printk(KERN_CRIT "%s", note); - print_hex_dump(KERN_CONT, "", DUMP_PREFIX_OFFSET, - 16, 1, - buf, len, false); + printk(KERN_CRIT "%s%*phN", note, (int)len, buf); } } -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html