Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pliz don't have two log channels with the same name
[simgrid.git] / examples / s4u / replay-storage / s4u-replay-storage.cpp
index 8d84d0a..543b21e 100644 (file)
 #include <xbt/replay.hpp>
 #include <xbt/str.h>
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(storage_replay, "Messages specific for this example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(replay_storage, "Messages specific for this example");
 
 static std::unordered_map<std::string, simgrid::s4u::File*> opened_files;
 
 #define ACT_DEBUG(...)                                                                                                 \
-  if (XBT_LOG_ISENABLED(storage_replay, xbt_log_priority_verbose)) {                                                   \
+  if (XBT_LOG_ISENABLED(replay_storage, xbt_log_priority_verbose)) {                                                   \
     char* NAME = xbt_str_join_array(action, " ");                                                                      \
     XBT_DEBUG(__VA_ARGS__);                                                                                            \
     xbt_free(NAME);                                                                                                    \
@@ -24,7 +24,7 @@ static std::unordered_map<std::string, simgrid::s4u::File*> opened_files;
 
 static void log_action(const char* const* action, double date)
 {
-  if (XBT_LOG_ISENABLED(storage_replay, xbt_log_priority_verbose)) {
+  if (XBT_LOG_ISENABLED(replay_storage, xbt_log_priority_verbose)) {
     char* name = xbt_str_join_array(action, " ");
     XBT_VERB("%s %f", name, date);
     xbt_free(name);