]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Log paths if kmod_module_new_from_path() failed
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 20:10:19 +0000 (18:10 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 20:11:12 +0000 (18:11 -0200)
libkmod/libkmod-module.c

index 5e7374f78e12518d9f2b33340f7764f0538022e3..1ec29e5b10f0afae32172d0207ef989dfba997e2 100644 (file)
@@ -351,8 +351,8 @@ KMOD_EXPORT int kmod_module_new_from_path(struct kmod_ctx *ctx,
                else if (streq(m->path, abspath))
                        free(abspath);
                else {
-                       ERR(ctx, "kmod_module '%s' already exists with different path\n",
-                                                                       name);
+                       ERR(ctx, "kmod_module '%s' already exists with different path: new-path='%s' old-path='%s'\n",
+                                                                       name, abspath, m->path);
                        free(abspath);
                        return -EEXIST;
                }