From aeddaca2ff2a9ca3e1f95c8cf4dd72af41985e53 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Mon, 26 Jul 2004 02:05:49 +0000 Subject: [PATCH] Try and print a bit faster. git-svn-id: svn://svn.valgrind.org/vex/trunk@129 --- VEX/hacked104/vg_translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VEX/hacked104/vg_translate.c b/VEX/hacked104/vg_translate.c index f65c595bb..8bd5b0863 100644 --- a/VEX/hacked104/vg_translate.c +++ b/VEX/hacked104/vg_translate.c @@ -3093,7 +3093,9 @@ void log_bytes ( Char* bytes, Int nbytes ) { //fwrite ( bytes, 1, nbytes, stdout ); Int i; - for (i = 0; i < nbytes; i++) + for (i = 0; i < nbytes-3; i += 4) + VG_(printf)("%c%c%c%c", bytes[i], bytes[i+1], bytes[i+2], bytes[i+3]); + for (; i < nbytes; i++) VG_(printf)("%c", bytes[i]); }