Signed-off-by: jikai <jikai11@huawei.com> (cherry picked from commit 0a5748543c47e895a44afbc57de2d1ad6f9063d9)
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 67db677060c70aa23e6927e99cc2078e219b9d2d Mon Sep 17 00:00:00 2001
|
|
From: haozi007 <liuhao27@huawei.com>
|
|
Date: Wed, 6 Sep 2023 11:01:47 +0000
|
|
Subject: [PATCH 11/22] !258 improve code of function in log Merge pull request
|
|
!258 from haozi007/stablefix
|
|
|
|
---
|
|
third_party/log.h | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/third_party/log.h b/third_party/log.h
|
|
index 2db0d98..43c1d5d 100644
|
|
--- a/third_party/log.h
|
|
+++ b/third_party/log.h
|
|
@@ -417,13 +417,13 @@ lxc_log_priority_define(&g_lxc_log_category_lxc, FATAL);
|
|
#define CMD_SYSERROR(format, ...) \
|
|
do { \
|
|
lxc_log_strerror_r; \
|
|
- fprintf(stderr, "%s - " format, ptr, ##__VA_ARGS__); \
|
|
+ fprintf(stderr, "%s - " format "\n", ptr, ##__VA_ARGS__); \
|
|
} while (0)
|
|
|
|
#define CMD_SYSINFO(format, ...) \
|
|
do { \
|
|
lxc_log_strerror_r; \
|
|
- printf("%s - " format, ptr, ##__VA_ARGS__); \
|
|
+ printf("%s - " format "\n", ptr, ##__VA_ARGS__); \
|
|
} while (0)
|
|
|
|
#define COMMAND_ERROR(fmt, args...) \
|
|
--
|
|
2.34.1
|
|
|