From patchwork Wed Mar 18 18:37:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 6042811 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 922E6BF90F for ; Wed, 18 Mar 2015 18:37:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE78C20384 for ; Wed, 18 Mar 2015 18:37:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C419A203DA for ; Wed, 18 Mar 2015 18:37:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D37076E8AD; Wed, 18 Mar 2015 11:37:37 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 239546E843 for ; Wed, 18 Mar 2015 11:37:36 -0700 (PDT) Received: by qgf3 with SMTP id 3so45028944qgf.3 for ; Wed, 18 Mar 2015 11:37:35 -0700 (PDT) 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:subject:date:message-id :in-reply-to:references; bh=dr5pAm1LnSClrocPA4A9JXizVr5qcFZT1upRJf+VT08=; b=T1LqXLKCFAZ8aBVo5/qX2KMr3aVJ6VrV25io3Ch/V3I9TmfIfuT2JWlV4Q291sxkFf EMHY86qCJW+vBwT95Xip6scoLSy/O/eKn1ZZWfW9FTg6/1KoSFLVmgtFICDHf9VTcw4L Vzo7ZbHH3NW1xdw8E6hiXH6BsZouiROlksQoAAl6Z78eJOVdeqTs2hJqaK08sXZUGJdv pxNXlnNHVmSxsHkMZao7el4/sCsDsvSy2Ra1Jy5S1oKYpm1V6ivjO8sJrDh4xFb0haol ajDGJcZx1C3iGaUpo8lUPFs8s9p1+lp0OD+qDarwfu0P2mqIKhzCL7s4vEIb+PozIc/T gePg== X-Gm-Message-State: ALoCoQn5agowQ2tUKHbN1hO2QVACJf8VnvjkTgA9P008M3y5odKabhj7QzgHk5kcTb0zVFfHFgJv X-Received: by 10.140.151.8 with SMTP id 8mr93224061qhx.65.1426703855708; Wed, 18 Mar 2015 11:37:35 -0700 (PDT) Received: from adriatix.rutgers.edu ([198.151.130.138]) by mx.google.com with ESMTPSA id r102sm12345247qkh.12.2015.03.18.11.37.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 11:37:35 -0700 (PDT) From: Jan Vesely To: dri-devel@lists.freedesktop.org, Emil Velikov Subject: [PATCH libdrm 9/8] Remove drmSetDebugMsgFunction and related infrastructure Date: Wed, 18 Mar 2015 14:37:34 -0400 Message-Id: <1426703854-18692-2-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426703854-18692-1-git-send-email-jan.vesely@rutgers.edu> References: <1425060448-5315-9-git-send-email-jan.vesely@rutgers.edu> <1426703854-18692-1-git-send-email-jan.vesely@rutgers.edu> 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.2 required=5.0 tests=BAYES_00, 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 Not used anywhere Signed-off-by: Jan Vesely Reviewed-by: Emil Velikov --- xf86drm.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index a309d57..ab472ea 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -114,11 +114,6 @@ drmDebugPrint(const char *format, va_list ap) return vfprintf(stderr, format, ap); } -typedef int DRM_PRINTFLIKE(1, 0) (*debug_msg_func_t)(const char *format, - va_list ap); - -static debug_msg_func_t drm_debug_print = drmDebugPrint; - void drmMsg(const char *format, ...) { @@ -130,18 +125,12 @@ drmMsg(const char *format, ...) if (drm_server_info) { drm_server_info->debug_print(format,ap); } else { - drm_debug_print(format, ap); + drmDebugPrint(format, ap); } va_end(ap); } } -void -drmSetDebugMsgFunction(debug_msg_func_t debug_msg_ptr) -{ - drm_debug_print = debug_msg_ptr; -} - static void *drmHashTable = NULL; /* Context switch callbacks */ void *drmGetHashTable(void)