lcr/0011-258-improve-code-of-function-in-log.patch
openeuler-sync-bot dd2d06b3b3 !276 [sync] PR-273: sync from upstream
* sync from upstream
2023-12-11 14:34:37 +00:00

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/20] !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.33.0