From patchwork Sun Mar 22 22:03:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6067851 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9D1A5BF910 for ; Sun, 22 Mar 2015 22:00:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB5682024D for ; Sun, 22 Mar 2015 22:00:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DD06B20220 for ; Sun, 22 Mar 2015 22:00:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 331856E3DC; Sun, 22 Mar 2015 15:00:51 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 65B056E3CE for ; Sun, 22 Mar 2015 15:00:50 -0700 (PDT) Received: by wgra20 with SMTP id a20so131859765wgr.3 for ; Sun, 22 Mar 2015 15:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xXG5sOfG9axymfdFJBAK4tk/NcQKo6MVFvNNSrHURkw=; b=SdpXXHrd7YcbH5+PO0pHqoiEEhB6wZW2igxFkE9MWO+LnVw3HboPDXFw/w1PysBTo+ Sq5n/XI0T1LbxTgAW/k0alDXAjR8gelxRG3lfuq80jKHOzvgCyn5QD5hZTWBaFgtAXGQ VVgV7n6ZwUuDiZOQli/rNuFSYTT6nV2F+nlX8azsapnh0labgIRqlDBl3VdkMXjLI8wR 0IpY4H6BDD0BWim4W+nU30wALKotLZCvuq+ELw+UNBr/WsZeI3nSRoAEkpQIs3+YL8U8 +nFykkaPA9+Xh/+4uiYsFT+h0Ou8nGOjY6BWN3VP5kAycnnrTsXo5jqJigxPX4qMIupq Qdog== X-Received: by 10.194.63.172 with SMTP id h12mr176097540wjs.48.1427061649747; Sun, 22 Mar 2015 15:00:49 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id dq8sm8281654wib.9.2015.03.22.15.00.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Mar 2015 15:00:49 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 9/9] drm: use correct printf modifiers Date: Sun, 22 Mar 2015 22:03:45 +0000 Message-Id: <1427061825-27470-10-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427061825-27470-1-git-send-email-emil.l.velikov@gmail.com> References: <1427061825-27470-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 The valies are unsigned long, thus we should use %lu. Signed-off-by: Emil Velikov Reviewed-by: Jan Vesely --- xf86drmHash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xf86drmHash.c b/xf86drmHash.c index 12baa62..887d6a7 100644 --- a/xf86drmHash.c +++ b/xf86drmHash.c @@ -119,7 +119,7 @@ static unsigned long HashHash(unsigned long key) hash %= HASH_SIZE; #if DEBUG - printf( "Hash(%d) = %d\n", key, hash); + printf( "Hash(%lu) = %lu\n", key, hash); #endif return hash; } @@ -221,8 +221,9 @@ int drmHashInsert(void *t, unsigned long key, void *value) bucket->value = value; bucket->next = table->buckets[hash]; table->buckets[hash] = bucket; -#if DEBUG printf("Inserted %d at %d/%p\n", key, hash, bucket); +#if DEBUG + printf("Inserted %lu at %lu/%p\n", key, hash, bucket); #endif return 0; /* Added to table */ }