From patchwork Sat Nov 17 21:11:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 1759941 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id DEBD9DF2A2 for ; Sat, 17 Nov 2012 21:12:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCB4AE5EF2 for ; Sat, 17 Nov 2012 13:12:21 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B68CE5F23; Sat, 17 Nov 2012 13:11:16 -0800 (PST) Received: from eliezer.anholt.net (annarchy.freedesktop.org [127.0.0.1]) by annarchy.freedesktop.org (Postfix) with ESMTP id C9F56648AA; Sat, 17 Nov 2012 13:11:15 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id C739BE63B23; Sat, 17 Nov 2012 13:11:14 -0800 (PST) From: Eric Anholt To: intel-gfx@lists.freedesktop.org Date: Sat, 17 Nov 2012 13:11:10 -0800 Message-Id: <1353186674-7234-3-git-send-email-eric@anholt.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353186674-7234-1-git-send-email-eric@anholt.net> References: <1353186674-7234-1-git-send-email-eric@anholt.net> Subject: [Intel-gfx] [PATCH 3/7] intel: Add printf attribute to intel_debug_fallback(). X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Shuts up a bunch of warnings with xorg's shared warning flags, and should give us more informative warnings in our code. --- src/intel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel.h b/src/intel.h index d394750..53ce33c 100644 --- a/src/intel.h +++ b/src/intel.h @@ -553,6 +553,9 @@ intel_get_transformed_coordinates_3d(int x, int y, PictTransformPtr transform, float *x_out, float *y_out, float *z_out); static inline void +intel_debug_fallback(ScrnInfoPtr scrn, const char *format, ...) _X_ATTRIBUTE_PRINTF(2, 3); + +static inline void intel_debug_fallback(ScrnInfoPtr scrn, const char *format, ...) { intel_screen_private *intel = intel_get_screen_private(scrn);