udev_value = udev_device_get_property_value(udev_device, property_key);
if (udev_value == NULL) {
- VIR_INFO(_("udev reports device '%s' does not have property '%s'"),
- udev_device_get_sysname(udev_device), property_key);
+ VIR_DEBUG("udev reports device '%s' does not have property '%s'",
+ udev_device_get_sysname(udev_device), property_key);
ret = PROPERTY_MISSING;
goto out;
}
udev_value = udev_device_get_sysattr_value(udev_device, attr_name);
if (udev_value == NULL) {
- VIR_INFO(_("udev reports device '%s' does not have sysfs attr '%s'"),
- udev_device_get_sysname(udev_device), attr_name);
+ VIR_DEBUG("udev reports device '%s' does not have sysfs attr '%s'",
+ udev_device_get_sysname(udev_device), attr_name);
ret = PROPERTY_MISSING;
goto out;
}
{
int ret = -1;
- VIR_INFO("Could not find definitive storage type for device "
- "with sysfs path '%s', trying to guess it",
- def->sysfs_path);
+ VIR_DEBUG("Could not find definitive storage type for device "
+ "with sysfs path '%s', trying to guess it",
+ def->sysfs_path);
if (STRPREFIX(def->caps->data.storage.block, "/dev/vd")) {
/* virtio disk */
}
if (ret != 0) {
- VIR_INFO("Could not determine storage type for device "
- "with sysfs path '%s'", def->sysfs_path);
+ VIR_DEBUG("Could not determine storage type for device "
+ "with sysfs path '%s'", def->sysfs_path);
} else {
VIR_DEBUG("Found storage type '%s' for device "
"with sysfs path '%s'",
} else if (STREQ(def->caps->data.storage.drive_type, "floppy")) {
ret = udevProcessFloppy(device, def);
} else {
- VIR_INFO("Unsupported storage type '%s'",
- def->caps->data.storage.drive_type);
+ VIR_DEBUG("Unsupported storage type '%s'",
+ def->caps->data.storage.drive_type);
goto out;
}
goto out;
}
- VIR_INFO("Could not determine device type for device "
- "with sysfs path '%s'",
- udev_device_get_sysname(device));
+ VIR_DEBUG("Could not determine device type for device "
+ "with sysfs path '%s'",
+ udev_device_get_sysname(device));
ret = -1;
out:
dev->def->name, name);
virNodeDeviceObjRemove(&driverState->devs, dev);
} else {
- VIR_INFO("Failed to find device to remove that has udev name '%s'",
- name);
+ VIR_DEBUG("Failed to find device to remove that has udev name '%s'",
+ name);
ret = -1;
}
nodeDeviceUnlock(driverState);
parent_sysfs_path = udev_device_get_syspath(parent_device);
if (parent_sysfs_path == NULL) {
- VIR_INFO("Could not get syspath for parent of '%s'",
- udev_device_get_syspath(parent_device));
+ VIR_DEBUG("Could not get syspath for parent of '%s'",
+ udev_device_get_syspath(parent_device));
}
dev = virNodeDeviceFindBySysfsPath(&driverState->devs,
if (device != NULL) {
if (udevAddOneDevice(device) != 0) {
- VIR_INFO("Failed to create node device for udev device '%s'",
- name);
+ VIR_DEBUG("Failed to create node device for udev device '%s'",
+ name);
}
ret = 0;
}
if ((pciret = pci_system_init()) != 0) {
char ebuf[256];
- VIR_INFO("Failed to initialize libpciaccess: %s",
- virStrerror(pciret, ebuf, sizeof ebuf));
+ VIR_ERROR(_("Failed to initialize libpciaccess: %s"),
+ virStrerror(pciret, ebuf, sizeof ebuf));
ret = -1;
goto out;
}