[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 13/13] stubs: do not call monitor_printf()
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 13/13] stubs: do not call monitor_printf() |
Date: |
Fri, 18 Oct 2013 11:52:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 18/10/2013 03:11, Wenchao Xia ha scritto:
> stubs/pci-drive-host-add.o is packaged together with /stubs/mon-printf.o
> so it would not work normal, remove it.
>
> Signed-off-by: Wenchao Xia <address@hidden>
> ---
> stubs/pci-drive-hot-add.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/stubs/pci-drive-hot-add.c b/stubs/pci-drive-hot-add.c
> index 1d98145..af4612f 100644
> --- a/stubs/pci-drive-hot-add.c
> +++ b/stubs/pci-drive-hot-add.c
> @@ -5,6 +5,5 @@
> int pci_drive_hot_add(Monitor *mon, const QDict *qdict, DriveInfo *dinfo)
> {
> /* On non-x86 we don't do PCI hotplug */
> - monitor_printf(mon, "Can't hot-add drive to type %d\n", dinfo->type);
> return -1;
> }
>
This is wrong; stubs are independent, that's why each of them is in its
own C file.
When linking a version of QEMU that does not have pci_drive_hot_add,
this function will call the monitor_printf from QEMU.
Paolo
- Re: [Qemu-devel] [PATCH 10/13] qerror: deref once in qerror_report(), (continued)
- [Qemu-devel] [PATCH 09/13] error: print progname with error_vprintf(), Wenchao Xia, 2013/10/18
- [Qemu-devel] [PATCH 08/13] error: don't set sep when print progname, Wenchao Xia, 2013/10/18
- [Qemu-devel] [PATCH 13/13] stubs: do not call monitor_printf(), Wenchao Xia, 2013/10/18
- Re: [Qemu-devel] [PATCH 13/13] stubs: do not call monitor_printf(),
Paolo Bonzini <=
- [Qemu-devel] [PATCH 11/13] qerror: folder qerror emit logic, Wenchao Xia, 2013/10/18
- [Qemu-devel] [PATCH 12/13] monitor: hide *cur_mon in monitor_get_fd(), Wenchao Xia, 2013/10/18