mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
loader: not having a pci-id should not be a warn
If there is no pci-id, which is valid for vc4 and freedreno, just emit an info msg. Keep malformed but existing pci-id's as a warning. Mostly just to clean up a warning that confuses users for the non-pci devices. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
e17437386c
commit
9153dd4b7e
1 changed files with 6 additions and 3 deletions
|
|
@ -207,9 +207,12 @@ libudev_get_pci_id_for_fd(int fd, int *vendor_id, int *chip_id)
|
|||
}
|
||||
|
||||
pci_id = udev_device_get_property_value(parent, "PCI_ID");
|
||||
if (pci_id == NULL ||
|
||||
sscanf(pci_id, "%x:%x", vendor_id, chip_id) != 2) {
|
||||
log_(_LOADER_WARNING, "MESA-LOADER: malformed or no PCI ID\n");
|
||||
if (pci_id == NULL) {
|
||||
log_(_LOADER_INFO, "MESA-LOADER: no PCI ID\n");
|
||||
*chip_id = -1;
|
||||
goto out;
|
||||
} else if (sscanf(pci_id, "%x:%x", vendor_id, chip_id) != 2) {
|
||||
log_(_LOADER_WARNING, "MESA-LOADER: malformed PCI ID\n");
|
||||
*chip_id = -1;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue