From 1b81253dd0d91191ceccd946961d8c53f4bcbd7d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 21 Jun 2016 08:52:42 +0100 Subject: lib: Suppress error messages from failure to load driver modules Pass -s switch to modprobe so that we don't litter stderr with the error message for a missing module - the load failure is sufficient. Signed-off-by: Chris Wilson --- lib/drmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 90ffdcfa..9a1232f4 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -221,7 +221,7 @@ int drm_get_card(void) static void modprobe(const char *driver) { char buf[128]; - snprintf(buf, sizeof(buf), "/sbin/modprobe %s", driver); + snprintf(buf, sizeof(buf), "/sbin/modprobe -s %s", driver); system(buf); } -- cgit v1.2.3