提交 a1758458 编写于 作者: S Shengliang Guan

minor changes

上级 6ff0bb47
...@@ -547,12 +547,12 @@ int taosSystem(const char *cmd) { ...@@ -547,12 +547,12 @@ int taosSystem(const char *cmd) {
int res; int res;
char buf[1024]; char buf[1024];
if (cmd == NULL) { if (cmd == NULL) {
uError("taosSystem cmd is NULL!\n"); uError("taosSystem cmd is NULL!");
return -1; return -1;
} }
if ((fp = popen(cmd, "r")) == NULL) { 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; return -1;
} else { } else {
while (fgets(buf, sizeof(buf), fp)) { while (fgets(buf, sizeof(buf), fp)) {
...@@ -560,9 +560,9 @@ int taosSystem(const char *cmd) { ...@@ -560,9 +560,9 @@ int taosSystem(const char *cmd) {
} }
if ((res = pclose(fp)) == -1) { if ((res = pclose(fp)) == -1) {
uError("close popen file pointer fp error!\n"); uError("close popen file pointer fp error!");
} else { } else {
uDebug("popen res is :%d\n", res); uDebug("popen res is :%d", res);
} }
return res; return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册