Skip to content

Commit

Permalink
lstopo: warn that filename is ignored when forcing the window output
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jan 20, 2023
1 parent 99cf34e commit 3487de4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/lstopo/lstopo.c
Expand Up @@ -1808,6 +1808,11 @@ main (int argc, char *argv[])
loutput.depth = hwloc_topology_get_depth(topology);
loutput.file = NULL;

if (filename && output_format == LSTOPO_OUTPUT_WINDOW) {
fprintf(stderr, "Output filename `%s' ignored when using graphical window output.\n",
filename);
}

if (output_format != LSTOPO_OUTPUT_XML) {
/* there might be some xml-imported userdata in objects, add lstopo-specific userdata in front of them */
lstopo_populate_userdata(hwloc_get_root_obj(topology));
Expand Down

0 comments on commit 3487de4

Please sign in to comment.