From e1e5856b3ce09e9d8b0899e10cf7e3ef724679d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Thu, 21 Nov 2013 19:48:51 +0200 Subject: [PATCH] lib: Fix pipe_crc->ctl_fd assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the correct fd in the assert(). Signed-off-by: Ville Syrjälä --- lib/igt_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index 7d7f651b..1ceaf59d 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -218,7 +218,7 @@ igt_pipe_crc_new(igt_debugfs_t *debugfs, int drm_fd, enum pipe pipe, pipe_crc->ctl_fd = igt_debugfs_open(debugfs, "i915_display_crc_ctl", O_WRONLY); - igt_assert(pipe_crc->crc_fd != -1); + igt_assert(pipe_crc->ctl_fd != -1); sprintf(buf, "i915_pipe_%c_crc", pipe_name(pipe)); pipe_crc->crc_fd = igt_debugfs_open(debugfs, buf, O_RDONLY);