]> mj.ucw.cz Git - pciutils.git/commitdiff
Fix parsing of domain filters
authorMartin Mares <mj@ucw.cz>
Mon, 22 Aug 2005 21:36:27 +0000 (21:36 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:26 +0000 (14:18 +0200)
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-69

ChangeLog
lib/filter.c

index 91ec87f0bcf419c4113cbf40511b8428f4e54f1c..d37e410bae8705fc77f4b474125d4f4248270cfb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 2005-08-22  Martin Mares  <mj@ucw.cz>
 
+       * lib/filter.c (pci_filter_parse_slot): Fixed parsing of domain filters.
+       Thanks to Matthew Wilcox for bug report.
+
        * lspci.c: Corrected spelling of "Hz" (it was "hz" at several places).
-       Thanks to Krzysztof Oledzki <ole@ans.pl> for pointing that out.
+       Thanks to Krzysztof Oledzki for pointing that out.
 
 2004-08-19  Martin Mares  <mj@ucw.cz>
 
index e66a470e075dc2617edb12b0a281d09e13b2c472..eb375c49022d4e3e7b347befda47de3e0a318b08 100644 (file)
@@ -39,7 +39,7 @@ pci_filter_parse_slot(struct pci_filter *f, char *str)
          bus = colon2;
          if (str[0] && strcmp(str, "*"))
            {
-             long int x = strtol(bus, &e, 16);
+             long int x = strtol(str, &e, 16);
              if ((e && *e) || (x < 0 || x > 0xffff))
                return "Invalid domain number";
              f->domain = x;