Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> --- lib/igt_kms.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index e2413e5..c503ebb 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -863,6 +863,7 @@ void igt_display_init(igt_display_t *display, int drm_fd) { drmModeRes *resources; bool verbose; + char *env; int i; /* @@ -873,6 +874,11 @@ void igt_display_init(igt_display_t *display, int drm_fd) memset(display, 0, sizeof(igt_display_t)); display->verbose = verbose; + /* allow a verbose override from an env variable */ + env = getenv("IGT_DISPLAY_VERBOSE"); + if (env) + display->verbose = atoi(env) != 0; + LOG_INDENT(display, "init"); display->drm_fd = drm_fd; -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx