From patchwork Wed Dec 7 06:36:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9464001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9CA4960512 for ; Wed, 7 Dec 2016 06:37:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B8922846F for ; Wed, 7 Dec 2016 06:37:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FD0B28491; Wed, 7 Dec 2016 06:37:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F9AD2846F for ; Wed, 7 Dec 2016 06:37:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71B2F6E1B6; Wed, 7 Dec 2016 06:37:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wj0-x244.google.com (mail-wj0-x244.google.com [IPv6:2a00:1450:400c:c01::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id A517A6E1B6 for ; Wed, 7 Dec 2016 06:37:06 +0000 (UTC) Received: by mail-wj0-x244.google.com with SMTP id xy5so47930646wjc.1 for ; Tue, 06 Dec 2016 22:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=SVCT9kjCLIVO8uhN6C2xIHOqyXExUO8Y0UmCf41GYHQ=; b=M1lFls/rKcyjO1cxrPk7w+2gk1L5m2TeBM5YeDDKblF7wCdZUSOY5guE4w9C/EW9BI 0nc51LFadrkNXJBfjFfr00QJjLke9rDLnPMeIE4r0ZGnt4FiuDYU8iaeXdDMoxBnnZsO 7Nlc5vFn6iHzsm2q3vN+dDIEBkpVXdeFCjCLKgWW4RjtsNk5KkojfvHoThjwIiQRoauo d3lx0/jIEBGciielsQw08m5dnM3/dkcxdxBD6l98xYu5k8I36I7Lv9ctcr9X10LU7b62 zF1AugtdbEeB23AO3y8meO0B0t/NouuPz6IxobBKKZC2bCl/t7J7vJSOVdA/G2TnbbQr QpnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=SVCT9kjCLIVO8uhN6C2xIHOqyXExUO8Y0UmCf41GYHQ=; b=UlNKPgoBBdc8mYZUfwZvkSmTuhzKu5CCmEBPUTMg7y4u9x8YbSh85C/R8wBSkGKr6y wx/WH4SGxrYd/urN6X9wsP4XygV1LNV5RVT1RN5/N3T0v8ViOGg0xO3e5/1gre2D87k6 i3/rVbe3imDnrEDR9Qf61DeH+7kgDJnvH7fdcpSC3pe37cnZ6zRF7FLzPuBrob5mudin gQL/CuyfMRTGkIodeCjAVsmiKlmB8Bb/FY/6fTMYSovjjy6296Qyva7fuU7LC0j8OuKV OXSUyJfB8Fl2em0B3rjnnnZbk7qoI93S3qrMkVqiO21XeyM3EeATVUTeuxZYlJeL4WWR U5Nw== X-Gm-Message-State: AKaTC02PRn9qOpuikxHQsN2cPTLpj6dc8quhb6B6iWQx+ROq39ffWxJ6/nO3H1kSw1tRvw== X-Received: by 10.194.127.104 with SMTP id nf8mr28085571wjb.39.1481092625008; Tue, 06 Dec 2016 22:37:05 -0800 (PST) Received: from cizrna.lan ([109.72.12.105]) by smtp.gmail.com with ESMTPSA id f67sm7790734wmd.13.2016.12.06.22.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 22:37:04 -0800 (PST) From: Tomeu Vizoso To: Intel GFX discussion Date: Wed, 7 Dec 2016 07:36:38 +0100 Message-Id: <1481092598-3892-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.7.4 Cc: Tomeu Vizoso Subject: [Intel-gfx] [PATCH i-g-t] lib: Use igt_assert_eq in CHECK_RETURN X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP So that debug logs contain the unexpected value. Signed-off-by: Tomeu Vizoso Reviewed-by: Abdiel Janulgue --- 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); \ }