diff options
author | Burt P <pburt0@gmail.com> | 2018-05-24 23:27:15 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-05-25 12:31:20 -0700 |
commit | 00add2bd9166a17941a257ceada12e6cdc6bef18 (patch) | |
tree | 809731aafad3263c3b5d3968cf153f6a08ee1455 /hardinfo/pci_util.c | |
parent | 28c2090f37f0b230ce786b85f281648afcceb8f5 (diff) |
pci_util: fix for revision
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/pci_util.c')
-rw-r--r-- | hardinfo/pci_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |