Revision aa924ae7 qemu-error.c

b/qemu-error.c
41 41
    va_end(ap);
42 42
}
43 43

  
44
void error_printf_unless_qmp(const char *fmt, ...)
45
{
46
    va_list ap;
47

  
48
    if (!monitor_cur_is_qmp()) {
49
        va_start(ap, fmt);
50
        error_vprintf(fmt, ap);
51
        va_end(ap);
52
    }
53
}
54

  
44 55
static Location std_loc = {
45 56
    .kind = LOC_NONE
46 57
};

Also available in: Unified diff