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