Skip to content

Commit 752c12f

Browse files
committed
doxy: improve the example code for osdev type(s) upgrade
Signed-off-by: Brice Goglin <[email protected]>
1 parent c34a6b0 commit 752c12f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/hwloc.doxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4700,7 +4700,7 @@ Type hwloc_obj_osdev_type_t is also renamed to ::hwloc_obj_osdev_types_t.
47004700
Codes looking OS device types should be updated as follows:
47014701
\verbatim
47024702
#if HWLOC_API_VERSION >= 0x30000
4703-
if (obj->type == HWLOC_OBJ_OS_DEVICE && obj->attr->osdev.types & HWLOC_OSDEV_TYPE_GPU)
4703+
if (obj->type == HWLOC_OBJ_OS_DEVICE && (obj->attr->osdev.types & HWLOC_OSDEV_TYPE_GPU))
47044704
/* obj is a 3.x GPU OS device */
47054705
#else
47064706
if (obj->type == HWLOC_OBJ_OS_DEVICE && obj->attr->osdev.type == HWLOC_OSDEV_TYPE_GPU)

0 commit comments

Comments
 (0)