Skip to content

Commit

Permalink
xml: add a missing verbose condition before a printf
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit 8e3161a)
  • Loading branch information
bgoglin committed Mar 3, 2021
1 parent b2e33de commit c29422c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hwloc/topology-xml.c
Expand Up @@ -192,8 +192,9 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology,
|| lvalue == HWLOC_OBJ_CACHE_INSTRUCTION)
obj->attr->cache.type = (hwloc_obj_cache_type_t) lvalue;
else
fprintf(stderr, "%s: ignoring invalid cache_type attribute %lu\n",
state->global->msgprefix, lvalue);
if (hwloc__xml_verbose())
fprintf(stderr, "%s: ignoring invalid cache_type attribute %lu\n",
state->global->msgprefix, lvalue);
} else if (hwloc__xml_verbose())
fprintf(stderr, "%s: ignoring cache_type attribute for non-cache object type\n",
state->global->msgprefix);
Expand Down

0 comments on commit c29422c

Please sign in to comment.