From 282a20578f84485e44cb4180dc9c0dad401452c1 Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Tue, 5 Sep 2023 21:55:15 +0200 Subject: [PATCH] nr rlc test: minor: change the logging --- openair2/LAYER2/nr_rlc/tests/LOG/log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openair2/LAYER2/nr_rlc/tests/LOG/log.h b/openair2/LAYER2/nr_rlc/tests/LOG/log.h index 8ebc7e1909..b9b8f3ce70 100644 --- a/openair2/LAYER2/nr_rlc/tests/LOG/log.h +++ b/openair2/LAYER2/nr_rlc/tests/LOG/log.h @@ -3,8 +3,8 @@ #include -#define LOG_E(x, ...) printf(__VA_ARGS__) -#define LOG_D(x, ...) printf(__VA_ARGS__) -#define LOG_W(x, ...) printf(__VA_ARGS__) +#define LOG_E(x, ...) do { printf("LOG_E: "); printf(__VA_ARGS__); } while (0) +#define LOG_D(x, ...) do { printf("LOG_D: "); printf(__VA_ARGS__); } while (0) +#define LOG_W(x, ...) do { printf("LOG_W: "); printf(__VA_ARGS__); } while (0) #endif /* _NR_RLC_TESTS_LOG_H_ */