Skip to content

Commit d84ec38

Browse files
committed
hwloc-info: also display object subtypes
Signed-off-by: Brice Goglin <[email protected]>
1 parent 355987b commit d84ec38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/hwloc/hwloc-info.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ hwloc_info_show_obj(hwloc_topology_t topology, hwloc_obj_t obj, const char *type
7676
return;
7777
printf("%s type = %s\n", prefix, hwloc_obj_type_string(obj->type));
7878
printf("%s full type = %s\n", prefix, type);
79+
if (obj->subtype)
80+
printf("%s subtype = %s\n", prefix, obj->subtype);
7981
printf("%s logical index = %u\n", prefix, obj->logical_index);
8082
if (obj->os_index != (unsigned) -1)
8183
printf("%s os index = %u\n", prefix, obj->os_index);

0 commit comments

Comments
 (0)