diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/flatload.c | 4 | ||||
-rw-r--r-- | linux-user/main.c | 12 | ||||
-rw-r--r-- | linux-user/syscall.c | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 00e0312691..8eba5a8197 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -47,9 +47,9 @@ //#define DEBUG #ifdef DEBUG -#define DBG_FLT(a...) printf(a) +#define DBG_FLT(...) printf(__VA_ARGS__) #else -#define DBG_FLT(a...) +#define DBG_FLT(...) #endif #define flat_reloc_valid(reloc, size) ((reloc) <= (size)) diff --git a/linux-user/main.c b/linux-user/main.c index dc39b05d23..0d36978ad6 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1080,12 +1080,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) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0bc9902ebc..76f0c95b9d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2563,7 +2563,7 @@ static abi_long do_ipc(unsigned int call, int first, /* kernel structure types definitions */ #define IFNAMSIZ 16 -#define STRUCT(name, list...) STRUCT_ ## name, +#define STRUCT(name, ...) STRUCT_ ## name, #define STRUCT_SPECIAL(name) STRUCT_ ## name, enum { #include "syscall_types.h" @@ -2571,7 +2571,7 @@ enum { #undef STRUCT #undef STRUCT_SPECIAL -#define STRUCT(name, list...) static const argtype struct_ ## name ## _def[] = { list, TYPE_NULL }; +#define STRUCT(name, ...) static const argtype struct_ ## name ## _def[] = { __VA_ARGS__, TYPE_NULL }; #define STRUCT_SPECIAL(name) #include "syscall_types.h" #undef STRUCT @@ -2592,8 +2592,8 @@ typedef struct IOCTLEntry { #define MAX_STRUCT_SIZE 4096 static IOCTLEntry ioctl_entries[] = { -#define IOCTL(cmd, access, types...) \ - { TARGET_ ## cmd, cmd, #cmd, access, { types } }, +#define IOCTL(cmd, access, ...) \ + { TARGET_ ## cmd, cmd, #cmd, access, { __VA_ARGS__ } }, #include "ioctls.h" { 0, 0, }, }; @@ -3497,7 +3497,7 @@ void syscall_init(void) int size; int i; -#define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); +#define STRUCT(name, ...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); #include "syscall_types.h" #undef STRUCT |