* [PATCH i-g-t] lib: Use igt_assert_eq in CHECK_RETURN
@ 2016-12-07 6:36 Tomeu Vizoso
2016-12-07 10:02 ` Abdiel Janulgue
0 siblings, 1 reply; 2+ messages in thread
From: Tomeu Vizoso @ 2016-12-07 6:36 UTC (permalink / raw)
To: Intel GFX discussion; +Cc: Tomeu Vizoso
So that debug logs contain the unexpected value.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@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 989704e14803..1e30ddcc5373 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1681,7 +1681,7 @@ static uint32_t igt_plane_get_fb_gem_handle(igt_plane_t *plane)
#define CHECK_RETURN(r, fail) { \
if (r && !fail) \
return r; \
- igt_assert(r == 0); \
+ igt_assert_eq(r, 0); \
}
--
2.7.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH i-g-t] lib: Use igt_assert_eq in CHECK_RETURN
2016-12-07 6:36 [PATCH i-g-t] lib: Use igt_assert_eq in CHECK_RETURN Tomeu Vizoso
@ 2016-12-07 10:02 ` Abdiel Janulgue
0 siblings, 0 replies; 2+ messages in thread
From: Abdiel Janulgue @ 2016-12-07 10:02 UTC (permalink / raw)
To: Tomeu Vizoso, Intel GFX discussion
On 12/07/2016 08:36 AM, Tomeu Vizoso wrote:
> So that debug logs contain the unexpected value.
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.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 989704e14803..1e30ddcc5373 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -1681,7 +1681,7 @@ static uint32_t igt_plane_get_fb_gem_handle(igt_plane_t *plane)
> #define CHECK_RETURN(r, fail) { \
> if (r && !fail) \
> return r; \
> - igt_assert(r == 0); \
> + igt_assert_eq(r, 0); \
> }
>
>
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-07 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 6:36 [PATCH i-g-t] lib: Use igt_assert_eq in CHECK_RETURN Tomeu Vizoso
2016-12-07 10:02 ` Abdiel Janulgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox