Skip to content

Commit 5f9ddc8

Browse files
committed
lstopo: warn that filename is ignored when forcing the window output
Signed-off-by: Brice Goglin <[email protected]> (cherry picked from commit 3487de4)
1 parent aafb3bd commit 5f9ddc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/lstopo/lstopo.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,11 @@ main (int argc, char *argv[])
17901790
loutput.depth = hwloc_topology_get_depth(topology);
17911791
loutput.file = NULL;
17921792

1793+
if (filename && output_format == LSTOPO_OUTPUT_WINDOW) {
1794+
fprintf(stderr, "Output filename `%s' ignored when using graphical window output.\n",
1795+
filename);
1796+
}
1797+
17931798
if (output_format != LSTOPO_OUTPUT_XML) {
17941799
/* there might be some xml-imported userdata in objects, add lstopo-specific userdata in front of them */
17951800
lstopo_populate_userdata(hwloc_get_root_obj(topology));

0 commit comments

Comments
 (0)