[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Get rid of DPRINTF in x11drv/opengl.c
From:       Lionel Ulmer <lionel.ulmer () free ! fr>
Date:       2004-12-30 19:37:47
Message-ID: 20041230203746.B28064 () bbland
[Download RAW message or body]

On Thu, Dec 30, 2004 at 11:10:19AM -0500, Dimitrie O. Paun wrote:
> The way to do it is to prepare the output in a memory buffer, and
> output it at once. This can be done with the wine_dbg_sprintf()
> function. In cases where you need logic to construct the output
> (like testing for flags, etc), you can do it by first printing
> to a local buffer, and then printing the content of the buffer
> to a debug buffer via wine_dbg_sprintf(). A simple example of this
> technique can be found in the dlls/kernel/locale.c file, in the
> debugstr_lang() function.

Yeah, this is another janitorial task that could be put on the list:
transform all 'TRACEing helper functions' (a lot in DDraw) to function
returning strings to really only have TRACEs calls in 'real' functions and
not logging functions.

        Lionel

-- 
		 Lionel Ulmer - http://www.bbrox.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic