[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/24] switch qemu-config to qemu_error
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 15/24] switch qemu-config to qemu_error |
Date: |
Fri, 25 Sep 2009 21:42:40 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
qemu-config.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/qemu-config.c b/qemu-config.c
index 39bf6a9..89b2b7c 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -1,6 +1,7 @@
#include "qemu-common.h"
#include "qemu-option.h"
#include "qemu-config.h"
+#include "sysemu.h"
QemuOptsList qemu_drive_opts = {
.name = "drive",
@@ -166,7 +167,7 @@ int qemu_set_option(const char *str)
rc = sscanf(str, "%63[^.].%63[^.].%63[^=]%n", group, id, arg, &offset);
if (rc < 3 || str[offset] != '=') {
- fprintf(stderr, "can't parse: \"%s\"\n", str);
+ qemu_error("can't parse: \"%s\"\n", str);
return -1;
}
@@ -175,19 +176,19 @@ int qemu_set_option(const char *str)
break;
}
if (lists[i] == NULL) {
- fprintf(stderr, "there is no option group \"%s\"\n", group);
+ qemu_error("there is no option group \"%s\"\n", group);
return -1;
}
opts = qemu_opts_find(lists[i], id);
if (!opts) {
- fprintf(stderr, "there is no %s \"%s\" defined\n",
+ qemu_error("there is no %s \"%s\" defined\n",
lists[i]->name, id);
return -1;
}
if (-1 == qemu_opt_set(opts, arg, str+offset+1)) {
- fprintf(stderr, "failed to set \"%s\" for %s \"%s\"\n",
+ qemu_error("failed to set \"%s\" for %s \"%s\"\n",
arg, lists[i]->name, id);
return -1;
}
--
1.6.2.5
- [Qemu-devel] [PATCH 10/24] Add exit callback to DeviceInfo., (continued)
- [Qemu-devel] [PATCH 10/24] Add exit callback to DeviceInfo., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 12/24] pci: use qdev for device destruction., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 07/24] convert pci bridge to qdev, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 13/24] pci: move unregister from PCIDevice to PCIDeviceInfo, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 11/24] Implement scsi device destruction, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 09/24] qdev: device free fixups., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 14/24] usb: hook unplug into qdev, cleanups + fixes., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 17/24] usb: hotplug windup, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 23/24] allow if=none for drive_add, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 19/24] pci: hotplug windup, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 15/24] switch qemu-config to qemu_error,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 21/24] drive cleanup fixes., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 18/24] scsi: hotplug windup, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 22/24] refactor drive_hot_add, Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 24/24] store a pointer to QemuOpts in DeviceState, release it when zapping a device., Gerd Hoffmann, 2009/09/25
- [Qemu-devel] [PATCH 16/24] qdev hotplug: infrastructure and monitor commands., Gerd Hoffmann, 2009/09/25