mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
Add missing newlines
Checked with following semantic patch for the library: // smpl @a@ identifier virtual.func; expression E1; expression fmt; position p1; @@ func(E1, fmt@p1, ...) @script:python b@ fmt << a.fmt; p1 << a.p1; @@ s = str(fmt) if s.find("\\n") < 0: print p1[0].file + ":" + p1[0].line // smpl For tools, just remove E1
This commit is contained in:
parent
adca3cd203
commit
050db08c57
@ -568,7 +568,7 @@ static int kmod_config_parse(struct kmod_config *config, int fd,
|
||||
fp = fdopen(fd, "r");
|
||||
if (fp == NULL) {
|
||||
err = -errno;
|
||||
ERR(config->ctx, "fd %d: %m", fd);
|
||||
ERR(config->ctx, "fd %d: %m\n", fd);
|
||||
close(fd);
|
||||
return err;
|
||||
}
|
||||
|
@ -1012,7 +1012,8 @@ static int __kmod_module_fill_softdep(struct kmod_module *mod,
|
||||
|
||||
err = kmod_module_get_softdeps(mod, &pre, &post);
|
||||
if (err < 0) {
|
||||
ERR(mod->ctx, "could not get softdep: %s", strerror(-err));
|
||||
ERR(mod->ctx, "could not get softdep: %s\n",
|
||||
strerror(-err));
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,7 @@ static inline int test_run_child(const struct test *t, int fdout[2],
|
||||
if (t->output.stdout != NULL) {
|
||||
close(fdout[0]);
|
||||
if (dup2(fdout[1], STDOUT_FILENO) < 0) {
|
||||
ERR("could not redirect stdout to pipe: %m");
|
||||
ERR("could not redirect stdout to pipe: %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
@ -213,7 +213,7 @@ static inline int test_run_child(const struct test *t, int fdout[2],
|
||||
if (t->output.stderr != NULL) {
|
||||
close(fderr[0]);
|
||||
if (dup2(fderr[1], STDERR_FILENO) < 0) {
|
||||
ERR("could not redirect stdout to pipe: %m");
|
||||
ERR("could not redirect stdout to pipe: %m\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
@ -458,7 +458,7 @@ static int prepend_path(const char *extra)
|
||||
return setenv("PATH", extra, 1);
|
||||
|
||||
if (asprintf(&newpath, "%s:%s", extra, oldpath) < 0) {
|
||||
ERR("failed to allocate memory to new PATH");
|
||||
ERR("failed to allocate memory to new PATH\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user