Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix type mismatch for function pointer.
[simgrid.git] / src / xbt / dict.cpp
index 2dec54d96bf0df575cdaae4e540490dd4e569efe..d4c7af3e105003a7d987a7fb41eae3f671993e7a 100644 (file)
@@ -560,7 +560,7 @@ static void debugged_add_ext(xbt_dict_t head, const char* key, const char* data_
 
   xbt_dict_set(head, key, data, nullptr);
   if (XBT_LOG_ISENABLED(xbt_dict, xbt_log_priority_debug)) {
-    xbt_dict_dump(head, (void (*)(void *)) &printf);
+    xbt_dict_dump(head, [](void* s) { fputs((char*)s, stdout); });
     fflush(stdout);
   }
 }