Skip to content

Commit 0ba3239

Browse files
committed
hwloc-info: display object depth as signed (for special levels)
Signed-off-by: Brice Goglin <[email protected]>
1 parent 9330a5e commit 0ba3239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/hwloc/hwloc-info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright © 2009 CNRS
3-
* Copyright © 2009-2016 Inria. All rights reserved.
3+
* Copyright © 2009-2017 Inria. All rights reserved.
44
* Copyright © 2009-2012 Université Bordeaux
55
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
66
* See COPYING in top-level directory.
@@ -76,7 +76,7 @@ hwloc_info_show_obj(hwloc_obj_t obj, const char *type, const char *prefix, int v
7676
if (obj->name)
7777
printf("%s name = %s\n", prefix, obj->name);
7878
if (obj->depth != (unsigned) -1)
79-
printf("%s depth = %u\n", prefix, obj->depth);
79+
printf("%s depth = %d\n", prefix, (int) obj->depth); /* special levels have negative values */
8080
printf("%s sibling rank = %u\n", prefix, obj->sibling_rank);
8181
printf("%s children = %u\n", prefix, obj->arity);
8282
printf("%s i/o children = %u\n", prefix, obj->io_arity);

0 commit comments

Comments
 (0)