From 08da66af7b9dec5da273a71ba72a162dc6fab1b0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Oct 2011 17:27:38 +0000 Subject: make libmodprobe.so quiet --- modalias.c | 4 ++++ pciusb.c | 4 ++++ 2 files changed, 8 insertions(+) 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 #include #include +#include #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++) { -- cgit v1.2.1