chiark / gitweb /
virt: check for /sys/hypervisor/type for detecting xen PV
[elogind.git] / src / udev / udev-builtin-net_id.c
index fbacb45877e99c4cbfc6ff9a0df68f15e645a477..fdbec5ae916872b7ba380355493f850cf41091b4 100644 (file)
@@ -256,7 +256,7 @@ static int names_pci(struct udev_device *dev, struct netnames *names) {
         if (!parent)
                 return -ENOENT;
         /* check if our direct parent is a PCI device with no other bus in-between */
-        if (streq("pci", udev_device_get_subsystem(parent))) {
+        if (streq_ptr("pci", udev_device_get_subsystem(parent))) {
                 names->type = NET_PCI;
                 names->pcidev = parent;
         } else {