From bc899050661dd1d301fd72b87b1644977a698186 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <romain.bernard@uca.fr> Date: Thu, 12 Sep 2024 17:49:10 +0200 Subject: [PATCH] add prefix to debug messages --- src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp | 2 +- src/ShortestPath/Transit/TransitStateContainer.h | 2 +- src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp | 2 +- src/algorithm/Multimodal/Heuristics/SimpleModularHeuristic.h | 2 +- src/routes/vehicle/SAEVRoute.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp b/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp index 5f592fb..b7087e2 100644 --- a/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp +++ b/src/ShortestPath/Transit/TransitShortestPathPrecompute.cpp @@ -8,7 +8,7 @@ #ifdef DEBUG_TRANSIT_PRECOMPUTE #include <iostream> -#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) +#define DEBUG_MSG(str) do { std::cout << "[TRANSIT] " << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif diff --git a/src/ShortestPath/Transit/TransitStateContainer.h b/src/ShortestPath/Transit/TransitStateContainer.h index 1cfb2a1..c503063 100644 --- a/src/ShortestPath/Transit/TransitStateContainer.h +++ b/src/ShortestPath/Transit/TransitStateContainer.h @@ -10,7 +10,7 @@ #ifdef DEBUG_TRANSIT_PRECOMPUTE #include <iostream> -#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) +#define DEBUG_MSG(str) do { std::cout << "[TRANSIT] " << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif diff --git a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp index 38b52b4..378bf99 100644 --- a/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp +++ b/src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp @@ -6,7 +6,7 @@ #ifdef DEBUG_BEST_INSERTION_HEURISTIC #include <iostream> -#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) +#define DEBUG_MSG(str) do { std::cout << "[BEST INSERTION] " << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif diff --git a/src/algorithm/Multimodal/Heuristics/SimpleModularHeuristic.h b/src/algorithm/Multimodal/Heuristics/SimpleModularHeuristic.h index 8f64f7c..57848ad 100644 --- a/src/algorithm/Multimodal/Heuristics/SimpleModularHeuristic.h +++ b/src/algorithm/Multimodal/Heuristics/SimpleModularHeuristic.h @@ -17,7 +17,7 @@ #ifdef DEBUG_MULTIMODAL_HEURISTIC #include <iostream> -#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) +#define DEBUG_MSG(str) do { std::cout << "[SMH] " << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif diff --git a/src/routes/vehicle/SAEVRoute.cpp b/src/routes/vehicle/SAEVRoute.cpp index dd08b69..ccdd0b1 100644 --- a/src/routes/vehicle/SAEVRoute.cpp +++ b/src/routes/vehicle/SAEVRoute.cpp @@ -9,7 +9,7 @@ #ifdef DEBUG_CONSTRAINT_PROPAGATION #include <iostream> -#define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) +#define DEBUG_MSG(str) do { std::cout << "[PROPAG] " << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif -- GitLab