]> xenbits.xensource.com Git - libvirt.git/commitdiff
Make an error message in PCI util code clearer
authorChris Lalancette <clalance@redhat.com>
Fri, 19 Feb 2010 15:04:35 +0000 (16:04 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 19 Feb 2010 15:04:35 +0000 (16:04 +0100)
* src/util/pci.c: update 2 message on pciRead errors

src/util/pci.c

index 44eb439fe144b7562ded822c13a7293597fb4285..b812241af8008259670e57431bce4aa106aaa690 100644 (file)
@@ -539,7 +539,7 @@ pciTrySecondaryBusReset(pciDevice *dev,
      */
     if (pciRead(dev, 0, config_space, PCI_CONF_LEN) < 0) {
         pciReportError(VIR_ERR_NO_SUPPORT,
-                       _("Failed to save PCI config space for %s"),
+                       _("Failed to read PCI config space for %s"),
                        dev->name);
         goto out;
     }
@@ -585,7 +585,7 @@ pciTryPowerManagementReset(pciDevice *dev)
     /* Save and restore the device's config space. */
     if (pciRead(dev, 0, &config_space[0], PCI_CONF_LEN) < 0) {
         pciReportError(VIR_ERR_NO_SUPPORT,
-                       _("Failed to save PCI config space for %s"),
+                       _("Failed to read PCI config space for %s"),
                        dev->name);
         return -1;
     }