From a1758458874f74766514337d914e592481cff2d4 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Wed, 19 Aug 2020 05:55:00 +0000 Subject: [PATCH] minor changes --- src/os/src/detail/osSysinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/src/detail/osSysinfo.c b/src/os/src/detail/osSysinfo.c index edf8fe6945..c75e254b0e 100644 --- a/src/os/src/detail/osSysinfo.c +++ b/src/os/src/detail/osSysinfo.c @@ -547,12 +547,12 @@ int taosSystem(const char *cmd) { int res; char buf[1024]; if (cmd == NULL) { - uError("taosSystem cmd is NULL!\n"); + uError("taosSystem cmd is NULL!"); return -1; } if ((fp = popen(cmd, "r")) == NULL) { - uError("popen cmd:%s error: %s/n", cmd, strerror(errno)); + uError("popen cmd:%s error: %s", cmd, strerror(errno)); return -1; } else { while (fgets(buf, sizeof(buf), fp)) { @@ -560,9 +560,9 @@ int taosSystem(const char *cmd) { } if ((res = pclose(fp)) == -1) { - uError("close popen file pointer fp error!\n"); + uError("close popen file pointer fp error!"); } else { - uDebug("popen res is :%d\n", res); + uDebug("popen res is :%d", res); } return res; -- GitLab