Select Git revision
nvdimm.patch
-
Rémi Dehenne authoredRémi Dehenne authored
nvdimm.patch 989 B
[PATCH] LAUNCH: Fix mpcrun --help crash with NVDIMM
author: Remi Dehenne
mpcrun --help no longer crashes when mpc_print_config displays
`<Topology> NVDIMM Found ! (OS Device #xx)` messages.
Those messages are now printed on stderr with
mpc_common_debug_log, rather than with fprintf on stdout.
---
src/MPC_Topology/src/topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MPC_Topology/src/topology.c b/src/MPC_Topology/src/topology.c
index e62cbcb01..9172c6de2 100644
--- a/src/MPC_Topology/src/topology.c
+++ b/src/MPC_Topology/src/topology.c
@@ -1376,7 +1376,7 @@ void _mpc_topology_nvdimm_detection(hwloc_topology_t topology)
{
if(strcmp(current->subtype, "NVDIMM") == 0)
{
- fprintf(stdout, "<Topology> %s Found ! (OS Device #%d)\n", current->subtype, current->logical_index);
+ mpc_common_debug_log("<Topology> %s Found ! (OS Device #%d)\n", current->subtype, current->logical_index);
++__mpc_module_avail_nvdimm;
}
}
--