aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-14 18:04:05 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-14 18:04:05 +0000
commit6b23f777223166d99e88402ddcf3583c3dda9b4c (patch)
treecac2db6e27f73f8234c7402f100529255e50c59e /linux-user
parent8d18e89309f08efc44eb777631aba2fbee70375a (diff)
printf format fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3645 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/strace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c
index 6854efec61..d7c18c63c7 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -271,7 +271,7 @@ print_syscall(int num,
abi_long arg4, abi_long arg5, abi_long arg6)
{
int i;
- char *format="%s(%ld,%ld,%ld,%ld,%ld,%ld)";
+ char *format="%s(" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld ")";
gemu_log("%d ", getpid() );
@@ -280,6 +280,8 @@ print_syscall(int num,
if( scnames[i].call != NULL ) {
scnames[i].call(&scnames[i],arg1,arg2,arg3,arg4,arg5,arg6);
} else {
+ /* XXX: this format system is broken because it uses
+ host types and host pointers for strings */
if( scnames[i].format != NULL )
format = scnames[i].format;
gemu_log(format,scnames[i].name, arg1,arg2,arg3,arg4,arg5,arg6);