From 7dd9c79b2d00a7ec6fbf999f15e90b351a198b1a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Sep 2022 11:30:10 -0600 Subject: [PATCH] llvmpipe: asst. clean-ups in lp_debug.h Signed-off-by: Brian Paul Part-of: --- src/gallium/drivers/llvmpipe/lp_debug.h | 31 +++++++++++++------------ 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_debug.h b/src/gallium/drivers/llvmpipe/lp_debug.h index 2262cdb0bba..b74c952552b 100644 --- a/src/gallium/drivers/llvmpipe/lp_debug.h +++ b/src/gallium/drivers/llvmpipe/lp_debug.h @@ -1,8 +1,8 @@ /************************************************************************** - * + * * Copyright 2007 VMware, Inc. * All Rights Reserved. - * + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -10,11 +10,11 @@ * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. @@ -22,7 +22,7 @@ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * **************************************************************************/ @@ -75,19 +75,20 @@ extern int LP_DEBUG; #define LP_DEBUG 0 #endif -void st_debug_init( void ); + +void +st_debug_init(void); + static inline void -LP_DBG( unsigned flag, const char *fmt, ... ) +LP_DBG(unsigned flag, const char *fmt, ...) { - if (LP_DEBUG & flag) - { - va_list args; - - va_start( args, fmt ); - debug_vprintf( fmt, args ); - va_end( args ); - } + if (LP_DEBUG & flag) { + va_list args; + va_start(args, fmt); + debug_vprintf(fmt, args); + va_end(args); + } }