From: Lucas De Marchi Date: Mon, 13 Feb 2012 23:58:36 +0000 (-0200) Subject: libkmod-index: don't print an error if index doesn't exist X-Git-Tag: v6~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73298175ea05793b48bd7ddfc6b1acdd88dd88fc;p=thirdparty%2Fkmod.git libkmod-index: don't print an error if index doesn't exist It's ok not to have the index files, so just print a DBG message instead of an ERR. --- diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 07f3b8c7..2a5a26e3 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -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; }