summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-10-18 17:27:38 +0000
committerThierry Vignaud <tv@mageia.org>2011-10-18 17:27:38 +0000
commit08da66af7b9dec5da273a71ba72a162dc6fab1b0 (patch)
tree943d2f2330f5145b00ef94ad4d429aa4dbf70cd6
parentc2303e8ff20b547b9adb4fe5c519b431966672f5 (diff)
downloadldetect-08da66af7b9dec5da273a71ba72a162dc6fab1b0.tar
ldetect-08da66af7b9dec5da273a71ba72a162dc6fab1b0.tar.gz
ldetect-08da66af7b9dec5da273a71ba72a162dc6fab1b0.tar.bz2
ldetect-08da66af7b9dec5da273a71ba72a162dc6fab1b0.tar.xz
ldetect-08da66af7b9dec5da273a71ba72a162dc6fab1b0.zip
make libmodprobe.so quiet
-rw-r--r--modalias.c4
-rw-r--r--pciusb.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/modalias.c b/modalias.c
index 2573839..2d17135 100644
--- a/modalias.c
+++ b/modalias.c
@@ -75,6 +75,10 @@ char *modalias_resolve_module(const char *modalias) {
set_default_alias_file();
get_version();
+
+ /* Makes module-init-tools quiet */
+ quiet = 1;
+
/* Returns the resolved alias, options */
parse_toplevel_config(NULL, &conf, 0, 0);
diff --git a/pciusb.c b/pciusb.c
index 7ad2aa7..6d4ccdc 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
+#include <logging.h>
#include "common.h"
static void set_modules_from_modalias_file(struct pciusb_entry *e, char *modalias_path) {
@@ -104,6 +105,9 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu
char buf[2048];
int line;
+ /* Makes module-init-tools quiet */
+ quiet = 1;
+
f = fh_open(fpciusbtable);
for (line = 1; fh_gets(buf, sizeof(buf) - 1, &f); line++) {