diff --git a/resource/readers/resource_reader_hwloc.cpp b/resource/readers/resource_reader_hwloc.cpp index 1517db6e1..d1f46d4a5 100644 --- a/resource/readers/resource_reader_hwloc.cpp +++ b/resource/readers/resource_reader_hwloc.cpp @@ -308,23 +308,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) {