mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
monitor: make monitor_fprintf and mon_get_cpu externally visible
monitor_fprintf and mon_get_cpu will be used in the target-specific monitor, so it is advisable to make it external. Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Denis V. Lunev <den@openvz.org> CC: Paolo Bonzini <pbonzini@redhat.com> CC: Andreas Färber <afaerber@suse.de> Message-Id: <1442927901-1084-6-git-send-email-den@openvz.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b6cfc3c2ac
commit
caf15319e8
4 changed files with 4 additions and 13 deletions
|
@ -372,8 +372,7 @@ void monitor_printf(Monitor *mon, const char *fmt, ...)
|
|||
va_end(ap);
|
||||
}
|
||||
|
||||
static int GCC_FMT_ATTR(2, 3) monitor_fprintf(FILE *stream,
|
||||
const char *fmt, ...)
|
||||
int monitor_fprintf(FILE *stream, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
|
@ -957,7 +956,7 @@ int monitor_set_cpu(int cpu_index)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static CPUState *mon_get_cpu(void)
|
||||
CPUState *mon_get_cpu(void)
|
||||
{
|
||||
if (!cur_mon->mon_cpu) {
|
||||
monitor_set_cpu(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue