From: Lucas De Marchi Date: Wed, 4 Jan 2012 22:53:10 +0000 (-0200) Subject: kmod-depmod: demote messages to WRN when non-critical files are missing X-Git-Tag: v3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56406fdb0a26d3e40f26bdf426f51b26bc41f1ef;p=thirdparty%2Fkmod.git kmod-depmod: demote messages to WRN when non-critical files are missing --- diff --git a/tools/kmod-depmod.c b/tools/kmod-depmod.c index a74dbcb3..9d6761c9 100644 --- a/tools/kmod-depmod.c +++ b/tools/kmod-depmod.c @@ -1438,7 +1438,7 @@ static void depmod_modules_sort(struct depmod *depmod) depmod->cfg->dirname); fp = fopen(order_file, "r"); if (fp == NULL) { - ERR("could not open %s: %m\n", order_file); + WRN("could not open %s: %m\n", order_file); return; } @@ -2109,7 +2109,7 @@ static int output_builtin_bin(struct depmod *depmod, FILE *out) in = fopen(infile, "r"); if (in == NULL) { int err = -errno; - ERR("could not open %s: %m\n", infile); + WRN("could not open %s: %m\n", infile); return err; }