From bc0f737dd7967e7daba24a089f79a8abb64def33 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Mon, 1 Mar 2010 21:00:37 +0000 Subject: [PATCH] Fix error messages when parsing USB devices in QEMU A number of the error messages raised when parsing USB devices refered to PCI devices by mistake * src/qemu/qemu_conf.c: s/PCI/USB/ in qemuParseCommandLineUSB() --- src/qemu/qemu_conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index c8f9b908a1..c93baec37e 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -5017,7 +5017,7 @@ qemuParseCommandLineUSB(const char *val) if (!STRPREFIX(val, "host:")) { qemuReportError(VIR_ERR_INTERNAL_ERROR, - _("unknown PCI device syntax '%s'"), val); + _("unknown USB device syntax '%s'"), val); VIR_FREE(def); goto cleanup; } @@ -5033,21 +5033,21 @@ qemuParseCommandLineUSB(const char *val) start = end + 1; if (virStrToLong_i(start, NULL, 16, &second) < 0) { qemuReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot extract PCI device product '%s'"), val); + _("cannot extract USB device product '%s'"), val); VIR_FREE(def); goto cleanup; } } else { if (virStrToLong_i(start, &end, 10, &first) < 0 || !end || *end != '.') { qemuReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot extract PCI device bus '%s'"), val); + _("cannot extract USB device bus '%s'"), val); VIR_FREE(def); goto cleanup; } start = end + 1; if (virStrToLong_i(start, NULL, 10, &second) < 0) { qemuReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot extract PCI device address '%s'"), val); + _("cannot extract USB device address '%s'"), val); VIR_FREE(def); goto cleanup; }