]> git.ipfire.org Git - thirdparty/pciutils.git/blobdiff - ls-tree.c
Released as 3.5.5
[thirdparty/pciutils.git] / ls-tree.c
index 5facdd7c7f00d57b0098955ff945bc33dbf2b318..add5b7ec63ea5921716f3a38c7111c265446627b 100644 (file)
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -63,7 +63,7 @@ insert_dev(struct device *d, struct bridge *b)
     {
       struct bridge *c;
       for (c=b->child; c; c=c->next)
-       if (c->domain == p->domain && c->secondary <= p->bus && p->bus <= c->subordinate)
+       if (c->domain == (unsigned)p->domain && c->secondary <= p->bus && p->bus <= c->subordinate)
           {
             insert_dev(d, c);
             return;
@@ -179,9 +179,9 @@ show_tree_dev(struct device *d, char *line, char *p)
     if (b->br_dev == d)
       {
        if (b->secondary == b->subordinate)
-         p += sprintf(p, "-[%04x:%02x]-", b->domain, b->secondary);
+         p += sprintf(p, "-[%02x]-", b->secondary);
        else
-         p += sprintf(p, "-[%04x:%02x-%02x]-", b->domain, b->secondary, b->subordinate);
+         p += sprintf(p, "-[%02x-%02x]-", b->secondary, b->subordinate);
         show_tree_bridge(b, line, p);
         return;
       }