]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix error messages when parsing USB devices in QEMU
authorRolf Eike Beer <eike@sf-mail.de>
Mon, 1 Mar 2010 21:00:37 +0000 (21:00 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Mar 2010 12:30:18 +0000 (12:30 +0000)
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

index c8f9b908a138d02fa89d38299b454daf327cfa6c..c93baec37ed6bd9a13ff83ed8cbb00469b633823 100644 (file)
@@ -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;
         }