Make an error message in PCI util code clearer
* src/util/pci.c: update 2 message on pciRead errors
This commit is contained in:
parent
b3e7890ada
commit
ee38d7e089
@ -539,7 +539,7 @@ pciTrySecondaryBusReset(pciDevice *dev,
|
|||||||
*/
|
*/
|
||||||
if (pciRead(dev, 0, config_space, PCI_CONF_LEN) < 0) {
|
if (pciRead(dev, 0, config_space, PCI_CONF_LEN) < 0) {
|
||||||
pciReportError(VIR_ERR_NO_SUPPORT,
|
pciReportError(VIR_ERR_NO_SUPPORT,
|
||||||
_("Failed to save PCI config space for %s"),
|
_("Failed to read PCI config space for %s"),
|
||||||
dev->name);
|
dev->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -585,7 +585,7 @@ pciTryPowerManagementReset(pciDevice *dev)
|
|||||||
/* Save and restore the device's config space. */
|
/* Save and restore the device's config space. */
|
||||||
if (pciRead(dev, 0, &config_space[0], PCI_CONF_LEN) < 0) {
|
if (pciRead(dev, 0, &config_space[0], PCI_CONF_LEN) < 0) {
|
||||||
pciReportError(VIR_ERR_NO_SUPPORT,
|
pciReportError(VIR_ERR_NO_SUPPORT,
|
||||||
_("Failed to save PCI config space for %s"),
|
_("Failed to read PCI config space for %s"),
|
||||||
dev->name);
|
dev->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user