[v0.21] Print id in hex format for consistency

This commit is contained in:
Dr-Noob
2021-12-27 22:33:21 +01:00
parent 118d9c0b67
commit 59f2715149

View File

@@ -11,7 +11,7 @@ bool pciutils_is_vendor_id_present(struct pci_dev *devices, int id) {
} }
} }
printWarn("Unable to find a valid device for id %d using pciutils", id); printWarn("Unable to find a valid device for vendor id 0x%.4X using pciutils", id);
return false; return false;
} }
@@ -22,7 +22,7 @@ uint16_t pciutils_get_pci_device_id(struct pci_dev *devices, int id) {
} }
} }
printErr("Unable to find a valid device for id %d using pciutils", id); printErr("Unable to find a valid device for device id 0x%.4X using pciutils", id);
return 0; return 0;
} }
@@ -39,7 +39,7 @@ void pciutils_set_pci_bus(struct pci* pci, struct pci_dev *devices, int id) {
} }
} }
if(!found) printErr("Unable to find a valid device for id %d using pciutils", id); if(!found) printErr("Unable to find a valid device for id 0x%.4X using pciutils", id);
} }
struct pci* get_pci_from_pciutils(struct pci_dev *devices, int id) { struct pci* get_pci_from_pciutils(struct pci_dev *devices, int id) {