[igt-dev] [PATCH i-g-t] lib/hang_detector: Log message if UDEV lib is missing

Antonio Argenziano antonio.argenziano at intel.com
Fri Jan 26 18:32:57 UTC 2018


Log a message saying that hang detector did not start because we are missing
a library.

Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Petri Latvala <petri.latvala at intel.com>
---
 lib/igt_aux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 8ca0b60d..08cb957f 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -509,8 +509,7 @@ void igt_stop_hang_detector(void)
 #else
 void igt_fork_hang_detector(int fd)
 {
-	if (igt_only_list_subtests())
-		return;
+	igt_info("Missing Udev library, hang detector did not start!\n");
 }
 
 void igt_stop_hang_detector(void)
-- 
2.14.2



More information about the igt-dev mailing list