summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2024-01-16 07:06:00 +0000
committersongyanchao <[email protected]>2024-01-16 07:06:00 +0000
commit4b061783cf6771a47b39fd34443c81cd0ea7fe14 (patch)
treeb5fd1952d5b189eb4bb95809d9e5567a566bd44f
parentc8225b93dad6bdc0ff6969afb418c819ca20f499 (diff)
🎈 perf: Modify "stderr" to "stdout" and remove "sd_journal_print" in MR_LOG.v4.6.70-20240116
Modify "stderr" to "stdout" and remove "sd_journal_print" in MR_LOG.
-rw-r--r--infra/include/common.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/infra/include/common.h b/infra/include/common.h
index 934bb47..7cf8e62 100644
--- a/infra/include/common.h
+++ b/infra/include/common.h
@@ -126,12 +126,8 @@ extern unsigned int g_eal_started;
{ \
if (g_logger_to_stdout && LEVEL <= g_logger_level) \
{ \
- fprintf(stderr, __VA_ARGS__); \
- fprintf(stderr, "\n"); \
- } \
- if (LEVEL <= g_logger_level) \
- { \
- sd_journal_print(LEVEL, ##__VA_ARGS__); \
+ fprintf(stdout, __VA_ARGS__); \
+ fprintf(stdout, "\n"); \
} \
} while (0)