mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 05:43:53 -06:00
error: New error_printf_unless_qmp()
This commit is contained in:
parent
ac8dae6794
commit
aa924ae730
2 changed files with 13 additions and 0 deletions
11
qemu-error.c
11
qemu-error.c
|
@ -41,6 +41,17 @@ void error_printf(const char *fmt, ...)
|
|||
va_end(ap);
|
||||
}
|
||||
|
||||
void error_printf_unless_qmp(const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
if (!monitor_cur_is_qmp()) {
|
||||
va_start(ap, fmt);
|
||||
error_vprintf(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
|
||||
static Location std_loc = {
|
||||
.kind = LOC_NONE
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue