From 886263b373fdea691c74e103428f1a805adc32c9 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Sat, 4 Jul 2009 15:42:06 +0200 Subject: [PATCH] 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. --- ls-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2