X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ls-tree.c;h=add5b7ec63ea5921716f3a38c7111c265446627b;hb=a662543285001bc75f60e4957b4e505af82db0b4;hp=5facdd7c7f00d57b0098955ff945bc33dbf2b318;hpb=c7a349934e4b9160d5788c60f168bae1f0b6dd9d;p=pciutils.git diff --git a/ls-tree.c b/ls-tree.c index 5facdd7..add5b7e 100644 --- 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; }