Skip to content

Commit 77344d2

Browse files
committed
lstopo/text: don't display a child as merged if the parent has IO or misc children
Foo + Bar PCI attached to Foo should be Foo Bar PCI Signed-off-by: Brice Goglin <[email protected]>
1 parent 7937bef commit 77344d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/lstopo/lstopo-text.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright © 2009 CNRS
3-
* Copyright © 2009-2016 Inria. All rights reserved.
3+
* Copyright © 2009-2017 Inria. All rights reserved.
44
* Copyright © 2009-2012 Université Bordeaux
55
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
66
* See COPYING in top-level directory.
@@ -138,6 +138,7 @@ output_topology (struct lstopo_output *loutput, hwloc_obj_t l, hwloc_obj_t paren
138138

139139
if (group_identical
140140
&& parent && parent->arity == 1
141+
&& !parent->io_arity && !parent->misc_arity
141142
&& l->cpuset && parent->cpuset && hwloc_bitmap_isequal(l->cpuset, parent->cpuset)) {
142143
/* in non-verbose mode, merge objects with their parent is they are exactly identical */
143144
fprintf(output, " + ");

0 commit comments

Comments
 (0)