ret = pipe(pipefd);
if (ret < 0) {
- fprintf(stderr, "pipe failed %d", ret);
+ fprintf(stderr, "pipe failed %d\n", ret);
return fret;
}
attach_options.stdout_fd = pipefd[1];
attach_options.attach_flags |= LXC_ATTACH_LSM_NOW;
ret = c->attach(c, test_attach_write_file, fnam, &attach_options, &pid);
if (ret < 0) {
- fprintf(stderr, "attach failed");
+ fprintf(stderr, "attach failed\n");
goto err1;
}
ret = read(pipefd[0], result, sizeof(result)-1);
if (ret < 0) {
- fprintf(stderr, "read failed %d", ret);
+ fprintf(stderr, "read failed %d\n", ret);
goto err2;
}
for (i = 0; files_to_deny[i]; i++) {
ret = do_test_file_open(c, files_to_deny[i]);
if (ret < 0) {
- fprintf(stderr, "attach failed; skipping test");
+ fprintf(stderr, "attach failed; skipping test\n");
return true;
}
if (ret > 0) {
for (i = 0; files_to_allow[i]; i++) {
ret = do_test_file_open(c, files_to_allow[i]);
if (ret < 0) {
- fprintf(stderr, "attach failed; skipping test");
+ fprintf(stderr, "attach failed; skipping test\n");
return true;
}
if (ret == 0) {
}
c->want_daemonize(c, true);
if (!c->startl(c, 0, NULL)) {
- fprintf(stderr, "Error starting container");
+ fprintf(stderr, "Error starting container\n");
goto err;
}