From patchwork Tue Mar 22 21:42:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 8645721 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 504F49F44D for ; Tue, 22 Mar 2016 21:43:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B49820397 for ; Tue, 22 Mar 2016 21:43:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AEDE42038F for ; Tue, 22 Mar 2016 21:43:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 889016E33A; Tue, 22 Mar 2016 21:43:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id CF0696E33A for ; Tue, 22 Mar 2016 21:43:00 +0000 (UTC) Received: by mail-yw0-f194.google.com with SMTP id p65so23057581ywb.3 for ; Tue, 22 Mar 2016 14:43:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L91NSpsKryodOHUoCPhuoLAZwS99GTWxwWng4c4pRAc=; b=XM1lIscS07ejzcnBs1j0S2HD57qMqP6T2LPRfURAB411EuNKiS3S+KB5UqISLCkthp BqapcYUQDegX8GxiQnammA7rf2QCzsA+EEQSu21zk4V4F+Pv23CiuU30VQmeiDy6jYy0 yAcjNeWQAdqt/9EPj4k069NlKPVg2J0yWELrQEbTQmM4fsy6b+YuL6iyAVwlreD0uRQ+ WU+eV/Pu5XC8PA5tuBf4fvOGY8oR7llvY0CDQCvveapLxfJsfGZeQwiv+eG3gS/RpZV1 Ln825D2gmO1sQFVcDkxtBlxW8YanCFkyGs9Dq3YzZd6d4uNun2bwMIuUvd1iKLGgSqYN 6ruA== X-Gm-Message-State: AD7BkJK631Y8t/7pzF8V0JWtmYmhiWeFZq6GMVCdbx685091wzhntqpjf2PPqylvtKg0Bg== X-Received: by 10.37.87.5 with SMTP id l5mr4684158ybb.123.1458682979356; Tue, 22 Mar 2016 14:42:59 -0700 (PDT) Received: from jade.localdomain ([177.194.47.65]) by smtp.gmail.com with ESMTPSA id e62sm14415309ywb.26.2016.03.22.14.42.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Mar 2016 14:42:58 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 2/2] modetest: print signed values correctly Date: Tue, 22 Mar 2016 18:42:52 -0300 Message-Id: <1458682972-18185-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458682972-18185-1-git-send-email-gustavo@padovan.org> References: <1458682972-18185-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , Emil Velikov X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Signed-off-by: Gustavo Padovan --- tests/modetest/modetest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index a5ac5bd..21d5438 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -314,6 +314,8 @@ static void dump_prop(struct device *dev, drmModePropertyPtr prop, printf("\t\tvalue:"); if (drm_property_type_is(prop, DRM_MODE_PROP_BLOB)) dump_blob(dev, value); + else if (drm_property_type_is(prop, DRM_MODE_PROP_SIGNED_RANGE)) + printf(" %"PRId64"\n", value); else printf(" %"PRIu64"\n", value); }