diff --git a/resource/readers/resource_reader_hwloc.cpp b/resource/readers/resource_reader_hwloc.cpp index 7f2cf8981..007005311 100644 --- a/resource/readers/resource_reader_hwloc.cpp +++ b/resource/readers/resource_reader_hwloc.cpp @@ -309,23 +309,26 @@ int resource_reader_hwloc_t::unpack_internal (resource_graph_t &g, goto done; } #else - if (hwloc_topology_set_io_types_filter(topo, + if (hwloc_topology_set_io_types_filter (topo, HWLOC_TYPE_FILTER_KEEP_IMPORTANT) < 0) { - m_err_msg += "hwloc_topology_set_io_types_filter"; - goto done; + errno = EINVAL; + m_err_msg += "hwloc_topology_set_io_types_filter; "; + goto done; } - if (hwloc_topology_set_cache_types_filter(topo, + if (hwloc_topology_set_cache_types_filter (topo, HWLOC_TYPE_FILTER_KEEP_STRUCTURE) < 0) { - m_err_msg += "hwloc_topology_set_cache_types_filter"; - goto done; + errno = EINVAL; + m_err_msg += "hwloc_topology_set_cache_types_filter; "; + goto done; } - if (hwloc_topology_set_icache_types_filter(topo, + if (hwloc_topology_set_icache_types_filter (topo, HWLOC_TYPE_FILTER_KEEP_STRUCTURE) < 0) { - m_err_msg += "hwloc_topology_set_icache_types_filter"; - goto done; + errno = EINVAL; + m_err_msg += "hwloc_topology_set_icache_types_filter; "; + goto done; } #endif if ( hwloc_topology_set_xmlbuffer (topo, str.c_str (), len) != 0) {