[igt-dev] [PATCH i-g-t 5/7] tests/kms_dp_tiled_display: Use labs() for long
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Jan 14 14:25:21 UTC 2020
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
'usec' is a long so we need labs() instead of abs().
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tests/kms_dp_tiled_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_dp_tiled_display.c
index 219de01c7b27..b1160fee3b0e 100644
--- a/tests/kms_dp_tiled_display.c
+++ b/tests/kms_dp_tiled_display.c
@@ -364,7 +364,7 @@ static void page_flip_handler(int fd, unsigned int seq,
* For seamless tear-free display, the page flip event timestamps
* from all the tiles should not differ by more than 10us.
*/
- igt_fail_on_f(abs(usec) >= 10, "Delayed page flip event from CRTC:%d at %u:%u\n",
+ igt_fail_on_f(labs(usec) >= 10, "Delayed page flip event from CRTC:%d at %u:%u\n",
crtc_id, tv_sec, tv_usec);
}
--
2.24.1
More information about the igt-dev
mailing list