Skip to content

Commit

Permalink
xml/import/distances2: add a missing error message
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 Jul 2, 2019
1 parent b5ae4f2 commit d3150ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hwloc/topology-xml.c
Expand Up @@ -1233,8 +1233,12 @@ hwloc__xml_v2import_distances(hwloc_topology_t topology,
if (!strcmp(attrname, "nbobjs"))
nbobjs = strtoul(attrvalue, NULL, 10);
else if (!strcmp(attrname, "type")) {
if (hwloc_type_sscanf(attrvalue, &type, NULL, 0) < 0)
if (hwloc_type_sscanf(attrvalue, &type, NULL, 0) < 0) {
if (hwloc__xml_verbose())
fprintf(stderr, "%s: unrecognized distances2 type %s\n",
state->global->msgprefix, attrvalue);
goto out;
}
}
else if (!strcmp(attrname, "indexing")) {
indexing = 1;
Expand Down

0 comments on commit d3150ad

Please sign in to comment.