Commit b64cbed8 authored by Christian Kellner's avatar Christian Kellner
Browse files

gbb info: show pci device reivion

parent a0ac3e4c
......@@ -70,20 +70,23 @@ info_txt_pci_device(GbbPciDevice *dev, const char *prefix)
g_autofree char *device_name = NULL;
guint vendor_id;
guint device_id;
guint revision;
g_object_get(dev,
"vendor", &vendor_id,
"vendor-name", &vendor_name,
"device", &device_id,
"device-name", &device_name,
"revision", &revision,
NULL);
g_print("%s %s [0x%x] (%s [0x%x])\n",
g_print("%s %s [0x%x] (%s [0x%x]) rev. 0x%x\n",
prefix,
device_name != NULL ? device_name : "Unknown",
device_id,
vendor_name != NULL ? vendor_name : "Unknown",
vendor_id);
vendor_id,
revision);
}
static int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment