Eric Blake <ebl...@redhat.com> writes: > On 01/16/2013 07:36 AM, Markus Armbruster wrote: >> Signed-off-by: Markus Armbruster <arm...@redhat.com> >> --- >> qemu-log.c | 13 +++++++++---- >> 1 file changed, 9 insertions(+), 4 deletions(-) >> >> diff --git a/qemu-log.c b/qemu-log.c >> index 64a1b88..1eadf1b 100644 >> --- a/qemu-log.c >> +++ b/qemu-log.c >> @@ -21,10 +21,12 @@ >> #include "qemu/log.h" >> >> #ifdef WIN32 >> -static const char *logfilename = "qemu.log"; >> +#define DEFAULT_LOGFILENAME = "qemu.log" > > Syntax error.
How embarrassing. Unfortunately, it compiles... I'll respin. >> @@ -54,11 +56,13 @@ void qemu_log_mask(int mask, const char *fmt, ...) >> /* enable or disable low levels log */ >> void qemu_set_log(int log_flags, bool use_own_buffers) >> { >> + const char *fname = logfilename ?: DEFAULT_LOGFILENAME; > > ?: is not C99, but a GNU extension. What is our policy on using it? We got several dozen instancess of ?: spread over the tree.