mirror of https://gitee.com/openkylin/qemu.git
Fix some compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3520 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2e13d23ac0
commit
f3e3285dcd
|
@ -9,10 +9,16 @@
|
||||||
#ifdef TARGET_ABI32
|
#ifdef TARGET_ABI32
|
||||||
typedef uint32_t abi_ulong;
|
typedef uint32_t abi_ulong;
|
||||||
typedef int32_t abi_long;
|
typedef int32_t abi_long;
|
||||||
|
#define TARGET_ABI_FMT_lx "%08x"
|
||||||
|
#define TARGET_ABI_FMT_ld "%d"
|
||||||
|
#define TARGET_ABI_FMT_lu "%u"
|
||||||
#define TARGET_ABI_BITS 32
|
#define TARGET_ABI_BITS 32
|
||||||
#else
|
#else
|
||||||
typedef target_ulong abi_ulong;
|
typedef target_ulong abi_ulong;
|
||||||
typedef target_long abi_long;
|
typedef target_long abi_long;
|
||||||
|
#define TARGET_ABI_FMT_lx TARGET_FMT_lx
|
||||||
|
#define TARGET_ABI_FMT_ld TARGET_FMT_ld
|
||||||
|
#define TARGET_ABI_FMT_lu TARGET_FMT_lu
|
||||||
#define TARGET_ABI_BITS TARGET_LONG_BITS
|
#define TARGET_ABI_BITS TARGET_LONG_BITS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,8 @@ print_timeval(target_ulong tv_addr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
tv = lock_user(tv_addr, sizeof(*tv), 1);
|
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);
|
unlock_user(tv, tv_addr, 0);
|
||||||
} else
|
} else
|
||||||
gemu_log("NULL");
|
gemu_log("NULL");
|
||||||
|
@ -220,12 +221,15 @@ if( ret == -1 ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* currently unused */
|
||||||
static void
|
static void
|
||||||
print_syscall_ret_raw(struct syscallname *name, target_long ret)
|
print_syscall_ret_raw(struct syscallname *name, target_long ret)
|
||||||
{
|
{
|
||||||
gemu_log(" = " TARGET_FMT_lx "\n", ret);
|
gemu_log(" = " TARGET_FMT_lx "\n", ret);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef TARGET_NR__newselect
|
||||||
static void
|
static void
|
||||||
print_syscall_ret_newselect(struct syscallname *name, target_long ret)
|
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);
|
print_timeval(newselect_arg5);
|
||||||
gemu_log(")\n");
|
gemu_log(")\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* An array of all of the syscalls we know about
|
* An array of all of the syscalls we know about
|
||||||
|
|
Loading…
Reference in New Issue