mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 08:16:10 +00:00
lib/display: Allow to override the display verbosity with an env variale
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
d435829ae9
commit
65fef0a434
@ -864,6 +864,7 @@ void igt_display_init(igt_display_t *display, int drm_fd)
|
||||
{
|
||||
drmModeRes *resources;
|
||||
bool verbose;
|
||||
char *env;
|
||||
int i;
|
||||
|
||||
/*
|
||||
@ -874,6 +875,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user