File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -174,14 +174,16 @@ output_only (struct lstopo_output *loutput, hwloc_obj_t l)
174
174
output_console_obj (loutput , l , 0 );
175
175
fprintf (output , "\n" );
176
176
}
177
+ /* there can be anything below normal children */
177
178
for (child = l -> first_child ; child ; child = child -> next_sibling )
178
179
output_only (loutput , child );
180
+ /* there can be only I/O or Misc below I/O children */
179
181
if (loutput -> show_only == HWLOC_OBJ_BRIDGE || loutput -> show_only == HWLOC_OBJ_PCI_DEVICE
180
182
|| loutput -> show_only == HWLOC_OBJ_OS_DEVICE || loutput -> show_only == HWLOC_OBJ_MISC ) {
181
- /* I/O can only contain other I/O or Misc, no need to recurse otherwise */
182
183
for (child = l -> io_first_child ; child ; child = child -> next_sibling )
183
184
output_only (loutput , child );
184
185
}
186
+ /* there can be only Misc below Misc children */
185
187
if (loutput -> show_only == HWLOC_OBJ_MISC ) {
186
188
/* Misc can only contain other Misc, no need to recurse otherwise */
187
189
for (child = l -> misc_first_child ; child ; child = child -> next_sibling )
You can’t perform that action at this time.
0 commit comments