[Intel-gfx] [PATCH i-g-t 5/7] lib/igt_kms: Switch to verbose assert.
robert.foss at collabora.com
robert.foss at collabora.com
Wed Apr 20 14:59:47 UTC 2016
From: Robert Foss <robert.foss at collabora.com>
Switch igt_assert to igt_assert_lte to provide more diagnostic
information.
Signed-off-by: Robert Foss <robert.foss at collabora.com>
---
lib/igt_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 522ede5..f6d0760 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1388,7 +1388,7 @@ void igt_display_init(igt_display_t *display, int drm_fd)
pipe->n_planes = plane_counter;
/* make sure we don't overflow the plane array */
- igt_assert(pipe->n_planes <= IGT_MAX_PLANES);
+ igt_assert_lte(pipe->n_planes, IGT_MAX_PLANES);
}
/*
--
2.5.0
More information about the Intel-gfx
mailing list