From: Daniel Vetter Subject: Re: [PATCH 3/5] igt/kms_psr_sink_crc: Add debug for CRC Date: Fri, 5 Sep 2014 09:40:55 +0200 Message-ID: <20140905074055.GB15520@phenom.ffwll.local> References: <20140904084551.GZ15520@phenom.ffwll.local> <1409869371-7558-1-git-send-email-rodrigo.vivi@intel.com> <1409869371-7558-3-git-send-email-rodrigo.vivi@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 7076B6E7E1 for ; Fri, 5 Sep 2014 00:40:33 -0700 (PDT) Received: by mail-wg0-f47.google.com with SMTP id z12so11113913wgg.6 for ; Fri, 05 Sep 2014 00:40:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1409869371-7558-3-git-send-email-rodrigo.vivi@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Rodrigo Vivi Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Sep 04, 2014 at 06:22:49PM -0400, Rodrigo Vivi wrote: > This helps to debug and check if the CRC you are reading correspond > what you are seeing on the screen > > > Signed-off-by: Rodrigo Vivi > --- > tests/kms_psr_sink_crc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c > index bbe18f0..51e54a7 100644 > --- a/tests/kms_psr_sink_crc.c > +++ b/tests/kms_psr_sink_crc.c > @@ -328,6 +328,8 @@ static void get_sink_crc(data_t *data, char *crc) { > > fclose(file); > > + igt_debug_wait(1, "%s\n", crc); I think igt_wait_keypress here is the better option. Together with igt_check_boolean_env_var it should be fairly pretty. I'll send out a quick prep patch for this. -Daniel > + > /* The important value was already taken. > * Now give a time for human eyes > */ > -- > 1.9.3 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch