diff --git a/src/os/src/detail/osSysinfo.c b/src/os/src/detail/osSysinfo.c index edf8fe69455ae3bc2623ecb2fc1a323194d14f84..c75e254b0e6fdc8af1a67a156b13c8d6d2fe46d2 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;