revision 990:ae329de3c8ab
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 990:ae329de3c8ab |
parent | 989:7baf5ecd8e98 |
child | 991:60c7fab9c880 |
author | nkeynes |
date | Wed Mar 04 23:04:54 2009 +0000 (14 years ago) |
Print address correctly with %p
1.1 --- a/src/test/testsh4x86.c Sat Feb 28 06:26:48 2009 +00001.2 +++ b/src/test/testsh4x86.c Wed Mar 04 23:04:54 2009 +00001.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;
.