diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-03 15:12:16 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-03 15:12:16 +0000 |
commit | f3e3285dcdcf84aa3f19ae888a914660922ad5f7 (patch) | |
tree | 55ecdba112be12e12851967f03be58d0fb492a3e /linux-user/strace.c | |
parent | 2e13d23ac089e554fc0efd285ec2176ca36576c7 (diff) | |
download | qemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.zip qemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.tar.gz qemu-f3e3285dcdcf84aa3f19ae888a914660922ad5f7.tar.bz2 |
Fix some compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3520 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/strace.c')
-rw-r--r-- | linux-user/strace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 14323e7..c645ddf 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -106,7 +106,8 @@ print_timeval(target_ulong tv_addr) return; tv = lock_user(tv_addr, sizeof(*tv), 1); - gemu_log("{%d,%d}", tv->tv_sec, tv->tv_usec); + gemu_log("{" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "}", + tv->tv_sec, tv->tv_usec); unlock_user(tv, tv_addr, 0); } else gemu_log("NULL"); @@ -220,12 +221,15 @@ if( ret == -1 ) { } } +#if 0 /* currently unused */ static void print_syscall_ret_raw(struct syscallname *name, target_long ret) { gemu_log(" = " TARGET_FMT_lx "\n", ret); } +#endif +#ifdef TARGET_NR__newselect static void print_syscall_ret_newselect(struct syscallname *name, target_long ret) { @@ -239,6 +243,7 @@ print_syscall_ret_newselect(struct syscallname *name, target_long ret) print_timeval(newselect_arg5); gemu_log(")\n"); } +#endif /* * An array of all of the syscalls we know about |