Revision aa924ae7
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 |
}; |
b/qemu-error.h | ||
---|---|---|
32 | 32 |
|
33 | 33 |
void error_vprintf(const char *fmt, va_list ap); |
34 | 34 |
void error_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); |
35 |
void error_printf_unless_qmp(const char *fmt, ...) |
|
36 |
__attribute__ ((format(printf, 1, 2))); |
|
35 | 37 |
void error_print_loc(void); |
36 | 38 |
void error_set_progname(const char *argv0); |
37 | 39 |
void error_report(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); |
Also available in: Unified diff