From 00add2bd9166a17941a257ceada12e6cdc6bef18 Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 24 May 2018 23:27:15 -0500 Subject: pci_util: fix for revision Signed-off-by: Burt P --- hardinfo/pci_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo') diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c index 58580694..40326da2 100644 --- a/hardinfo/pci_util.c +++ b/hardinfo/pci_util.c @@ -227,7 +227,7 @@ static gboolean pci_get_device_lspci(uint32_t dom, uint32_t bus, uint32_t dev, u } } if (l = lspci_line_value(p, "Rev")) { - s->revision = strtol(l, NULL, 0); + s->revision = strtol(l, NULL, 16); } lspci_line_string_and_code(p, "Class", &s->class_str, &s->class); lspci_line_string_and_code(p, "Vendor", &s->vendor_id_str, &s->vendor_id); -- cgit v1.2.3