From: Matthew Wilcox Date: Sat, 4 Jul 2009 13:42:06 +0000 (+0200) Subject: lspci -t: Only show the domain at the root of the tree X-Git-Tag: v3.1.3~9 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=886263b373fdea691c74e103428f1a805adc32c9;p=pciutils.git lspci -t: Only show the domain at the root of the tree Children always have the same domain as their parents, so it's redundant information, and it makes the tree display too wide. --- diff --git a/ls-tree.c b/ls-tree.c index 5facdd7..4c5b853 100644 --- 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; }