From: Lucas De Marchi Date: Fri, 25 Nov 2011 03:28:39 +0000 (-0200) Subject: Back to logging without \n X-Git-Tag: v1~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b2e26a1e2f5ec0e9d1abf0e564e80cbd7edcc03;p=thirdparty%2Fkmod.git Back to logging without \n It possibly breaks when not logging to stderr --- diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index 5e8ae73e..d9ba0b1b 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -193,12 +193,12 @@ KMOD_EXPORT int kmod_module_insert_module(struct kmod_module *mod, return -ENOENT; if (mod->path == NULL) { - ERR(mod->ctx, "Not supported to load a module by name yet"); + ERR(mod->ctx, "Not supported to load a module by name yet\n"); return -ENOSYS; } if (flags != 0) - INFO(mod->ctx, "Flags are not implemented yet"); + INFO(mod->ctx, "Flags are not implemented yet\n"); if ((fd = open(mod->path, O_RDONLY)) < 0) { err = -errno; @@ -215,7 +215,7 @@ KMOD_EXPORT int kmod_module_insert_module(struct kmod_module *mod, err = init_module(mmaped_file, st.st_size, args); if (err < 0) - ERR(mod->ctx, "Failed to insert module '%s'", mod->path); + ERR(mod->ctx, "Failed to insert module '%s'\n", mod->path); munmap(mmaped_file, st.st_size); close(fd); diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 13948fb3..49acea2a 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -71,7 +71,6 @@ static void log_stderr(struct kmod_ctx *ctx, { fprintf(stderr, "libkmod: %s: ", fn); vfprintf(stderr, format, args); - fprintf(stderr, "\n"); } const char *kmod_get_dirname(struct kmod_ctx *ctx)