Skip to content

Commit 523e946

Browse files
committed
lstopo/draw: fix the printing of memory info attrs
Fix the check of memory osdev type. Don't actually fix anything since attributes were only printed if they exist, but better to fix it anyway. Signed-off-by: Brice Goglin <[email protected]>
1 parent 54d25cd commit 523e946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/lstopo/lstopo-draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ prepare_text(struct lstopo_output *loutput, hwloc_obj_t obj)
13901390
}
13911391

13921392
}
1393-
if (HWLOC_OBJ_OSDEV_MEMORY) {
1393+
if (HWLOC_OBJ_OSDEV_MEMORY & obj->attr->osdev.type) {
13941394
/* Memory
13951395
* Size was printed above in STORAGE|MEMORY.
13961396
*/

0 commit comments

Comments
 (0)