diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 17:53:17 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 17:53:17 +0000 |
commit | 001faf3269541f0231482e0fccc846f62f8930b2 (patch) | |
tree | a5a7b0143f3fd9d71e42eb03c4967f8763ec3501 /darwin-user/main.c | |
parent | 4cfce484c5d7e514c23689f3194055b5463d6054 (diff) |
Replace gcc variadic macro extension with C99 version
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'darwin-user/main.c')
-rw-r--r-- | darwin-user/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/darwin-user/main.c b/darwin-user/main.c index 51c6aa0f4d..5e3c48db2c 100644 --- a/darwin-user/main.c +++ b/darwin-user/main.c @@ -158,12 +158,12 @@ int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, target_ulong val) return -1; } -#define EXCP_DUMP(env, fmt, args...) \ -do { \ - fprintf(stderr, fmt , ##args); \ - cpu_dump_state(env, stderr, fprintf, 0); \ - qemu_log(fmt, ##args); \ - log_cpu_state(env, 0); \ +#define EXCP_DUMP(env, fmt, ...) \ +do { \ + fprintf(stderr, fmt , ## __VA_ARGS__); \ + cpu_dump_state(env, stderr, fprintf, 0); \ + qemu_log(fmt, ## __VA_ARGS__); \ + log_cpu_state(env, 0); \ } while (0) void cpu_loop(CPUPPCState *env) |