Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make xbt_die use the root log category.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 31 Mar 2021 20:20:43 +0000 (22:20 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 1 Apr 2021 11:34:19 +0000 (13:34 +0200)
include/xbt/sysdep.h
teshsuite/s4u/host-on-off-actors/host-on-off-actors.tesh

index 969e0b8..63a4bbc 100644 (file)
@@ -40,10 +40,10 @@ XBT_ATTRIB_NORETURN XBT_PUBLIC void xbt_abort(void);
  *
  * The message is handled by a CRITICAL logging request, and may consist of a format string with arguments.
  */
-#define xbt_die(...)                            \
-  do {                                          \
-    XBT_CCRITICAL(xbt, __VA_ARGS__);            \
-    xbt_abort();                                \
+#define xbt_die(...)                                                                                                   \
+  do {                                                                                                                 \
+    XBT_CCRITICAL(root, __VA_ARGS__);                                                                                  \
+    xbt_abort();                                                                                                       \
   } while (0)
 /** @} */
 
index cab0a86..2903838 100644 (file)
@@ -17,7 +17,7 @@ $ $VALGRIND_NO_LEAK_CHECK ./host-on-off-actors ${platfdir}/small_platform.xml 2
 > [Tremblay:test_launcher:(1) 0.000000] [s4u_test/INFO] Test 2:
 > [Tremblay:test_launcher:(1) 0.000000] [s4u_test/INFO]   Turn off Jupiter
 > [0.000000] [simix_process/WARNING] Cannot launch actor 'actor_daemon' on failed host 'Jupiter'
-> [Tremblay:test_launcher:(1) 0.000000] [xbt/CRITICAL] Could not launch a new actor on failed host Jupiter.
+> [Tremblay:test_launcher:(1) 0.000000] [root/CRITICAL] Could not launch a new actor on failed host Jupiter.
 
 $ ./host-on-off-actors ${platfdir}/small_platform.xml 4 --log=no_loc
 > [Tremblay:test_launcher:(1) 0.000000] [s4u_test/INFO] Test 4 (turn off src during a communication) : Create an actor/task to make a communication between Jupiter and Tremblay and turn off Jupiter during the communication