summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-11-21 18:47:28 +0000
committerThierry Vignaud <tv@mageia.org>2011-11-21 18:47:28 +0000
commita3987dd5383d2137b559e96fc78f04eb5e1c927a (patch)
tree7b016e31055571bb9ef030596cd2a9c032cfc56f
parentf43090757d699a396c17db668fec3f57e35adabc (diff)
downloadldetect-a3987dd5383d2137b559e96fc78f04eb5e1c927a.tar
ldetect-a3987dd5383d2137b559e96fc78f04eb5e1c927a.tar.gz
ldetect-a3987dd5383d2137b559e96fc78f04eb5e1c927a.tar.bz2
ldetect-a3987dd5383d2137b559e96fc78f04eb5e1c927a.tar.xz
ldetect-a3987dd5383d2137b559e96fc78f04eb5e1c927a.zip
(modalias_resolve_module, pciusb_find_modules) use saner API for quieting libmodprobe
-rw-r--r--NEWS1
-rw-r--r--modalias.c2
-rw-r--r--pciusb.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index fb6028c..8547da3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- make sure to behave properly on errors in libmodprobe (#3309)
+- use saner API for quieting libmodprobe
Version 0.11.2 - 18 October 2011, Thierry Vignaud
diff --git a/modalias.c b/modalias.c
index a235c09..29646e3 100644
--- a/modalias.c
+++ b/modalias.c
@@ -77,7 +77,7 @@ char *modalias_resolve_module(const char *modalias) {
get_version();
/* Makes module-init-tools quiet */
- quiet = 1;
+ set_quiet(1);
/* Returns the resolved alias, options */
parse_toplevel_config(NULL, &conf, 0, 0);
diff --git a/pciusb.c b/pciusb.c
index 6d4ccdc..44ea39a 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -106,7 +106,7 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu
int line;
/* Makes module-init-tools quiet */
- quiet = 1;
+ set_quiet(1);
f = fh_open(fpciusbtable);