Search
lxdream.org :: lxdream :: r990:ae329de3c8ab
lxdream 0.9.1
released Jun 29
Download Now
changeset990:ae329de3c8ab
parent989:7baf5ecd8e98
child991:60c7fab9c880
authornkeynes
dateWed Mar 04 23:04:54 2009 +0000 (11 years ago)
Print address correctly with %p
src/test/testsh4x86.c
1.1 --- a/src/test/testsh4x86.c Sat Feb 28 06:26:48 2009 +0000
1.2 +++ b/src/test/testsh4x86.c Wed Mar 04 23:04:54 2009 +0000
1.3 @@ -22,6 +22,8 @@
1.4 #include <stdarg.h>
1.5 #include <getopt.h>
1.6 #include <sys/stat.h>
1.7 +#include <string.h>
1.8 +
1.9 #include "x86dasm/x86dasm.h"
1.10 #include "sh4/sh4trans.h"
1.11 #include "sh4/sh4core.h"
1.12 @@ -191,7 +193,7 @@
1.13 char buf[256];
1.14 char op[256];
1.15 uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.16 - fprintf( stdout, "%08x: %s\n", pc, buf );
1.17 + fprintf( stdout, "%p: %s\n", (void *)pc, buf );
1.18 pc = pc2;
1.19 }
1.20 return 0;
.