]> mj.ucw.cz Git - pciutils.git/commitdiff
lspci -t: Only show the domain at the root of the tree
authorMatthew Wilcox <matthew@wil.cx>
Sat, 4 Jul 2009 13:42:06 +0000 (15:42 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 13:42:06 +0000 (15:42 +0200)
Children always have the same domain as their parents, so it's redundant
information, and it makes the tree display too wide.

ls-tree.c

index 5facdd7c7f00d57b0098955ff945bc33dbf2b318..4c5b8532d332384d799435e6cff260a5bf4cba59 100644 (file)
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -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;
       }