diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-21 08:52:42 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-21 08:52:42 +0100 |
commit | 1b81253dd0d91191ceccd946961d8c53f4bcbd7d (patch) | |
tree | cc67eb5b39fe125eeb06a2a2109fbce035a5930f /lib/drmtest.c | |
parent | 85d6566c4e61348e4c9ede606c4937912f62e652 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |