]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod-index: don't print an error if index doesn't exist
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 13 Feb 2012 23:58:36 +0000 (21:58 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 13 Feb 2012 23:58:36 +0000 (21:58 -0200)
It's ok not to have the index files, so just print a DBG message instead
of an ERR.

libkmod/libkmod-index.c

index 07f3b8c71eb90c0676cab34134105e767c3f9907..2a5a26e33732036089480decffa3e75ab5faf3f6 100644 (file)
@@ -793,7 +793,7 @@ struct index_mm *index_mm_open(struct kmod_ctx *ctx, const char *filename,
        }
 
        if ((fd = open(filename, O_RDONLY|O_CLOEXEC)) < 0) {
-               ERR(ctx, "open(%s, O_RDONLY|O_CLOEXEC): %m\n", filename);
+               DBG(ctx, "open(%s, O_RDONLY|O_CLOEXEC): %m\n", filename);
                goto fail_open;
        }