Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit f57e397

Browse files
committed
remove some logs
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
1 parent f71d02c commit f57e397

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

src/container.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,6 @@ static int hyper_setup_container_rootfs(void *data)
550550
goto fail;
551551
}
552552

553-
fprintf(stdout, "container root directory %s\n", root);
554-
555553
if (container->fstype) {
556554
char dev[128];
557555
char *options = NULL;

src/exec.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,28 @@ static int hyper_send_exec_code(struct hyper_exec *exec) {
6767

6868
static void pts_hup(struct hyper_event *de, int efd, struct hyper_exec *exec)
6969
{
70-
fprintf(stdout, "%s, seq %" PRIu64"\n", __func__, exec->seq);
71-
7270
hyper_event_hup(de, efd);
73-
7471
hyper_release_exec(exec);
7572
}
7673

7774
static void stdin_hup(struct hyper_event *de, int efd)
7875
{
7976
struct hyper_exec *exec = container_of(de, struct hyper_exec, stdinev);
80-
fprintf(stdout, "%s\n", __func__);
77+
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
8178
return pts_hup(de, efd, exec);
8279
}
8380

8481
static void stdout_hup(struct hyper_event *de, int efd)
8582
{
8683
struct hyper_exec *exec = container_of(de, struct hyper_exec, stdoutev);
87-
fprintf(stdout, "%s\n", __func__);
84+
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
8885
return pts_hup(de, efd, exec);
8986
}
9087

9188
static void stderr_hup(struct hyper_event *de, int efd)
9289
{
9390
struct hyper_exec *exec = container_of(de, struct hyper_exec, stderrev);
94-
fprintf(stdout, "%s\n", __func__);
91+
fprintf(stdout, "%s, seq %" PRIu64", id %s\n", __func__, exec->seq, exec->id);
9592
return pts_hup(de, efd, exec);
9693
}
9794

@@ -802,7 +799,6 @@ static int hyper_kill_container_processes(struct hyper_container *c) {
802799
if (st.st_ino != st1.st_ino)
803800
continue;
804801

805-
fprintf(stdout, "kill process of container %d\n", pid);
806802
kill(pid, SIGKILL);
807803
loop = 1;
808804
}

src/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ static void hyper_term_all(struct hyper_pod *pod)
164164
fprintf(stdout, "Sending SIGTERM\n");
165165

166166
for (--index; index >= 0; --index) {
167-
fprintf(stdout, "kill process %d\n", pids[index]);
168167
kill(pids[index], SIGTERM);
169168
}
170169

src/net.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ static int hyper_get_ifindex(char *nic)
166166
int fd, ifindex = -1;
167167
char path[512], buf[8];
168168

169-
fprintf(stdout, "net device %s\n", nic);
170169
sprintf(path, "/sys/class/net/%s/ifindex", nic);
171170
fprintf(stdout, "net device sys path is %s\n", path);
172171

0 commit comments

Comments
 (0)