Skip to content

Commit daa816c

Browse files
committed
lstopo/text: clarify some comments
Signed-off-by: Brice Goglin <[email protected]>
1 parent 77344d2 commit daa816c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/lstopo/lstopo-text.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,16 @@ output_only (struct lstopo_output *loutput, hwloc_obj_t l)
174174
output_console_obj (loutput, l, 0);
175175
fprintf (output, "\n");
176176
}
177+
/* there can be anything below normal children */
177178
for(child = l->first_child; child; child = child->next_sibling)
178179
output_only (loutput, child);
180+
/* there can be only I/O or Misc below I/O children */
179181
if (loutput->show_only == HWLOC_OBJ_BRIDGE || loutput->show_only == HWLOC_OBJ_PCI_DEVICE
180182
|| 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 */
182183
for(child = l->io_first_child; child; child = child->next_sibling)
183184
output_only (loutput, child);
184185
}
186+
/* there can be only Misc below Misc children */
185187
if (loutput->show_only == HWLOC_OBJ_MISC) {
186188
/* Misc can only contain other Misc, no need to recurse otherwise */
187189
for(child = l->misc_first_child; child; child = child->next_sibling)

0 commit comments

Comments
 (0)