fluidsynth: Use Wine debugging facility for traces.

This commit is contained in:
Rémi Bernon 2023-09-08 10:05:28 +02:00 committed by Alexandre Julliard
parent f768d6b31b
commit b5903214ab
2 changed files with 13 additions and 4 deletions

View file

@ -640,7 +640,7 @@ void fluid_profiling_print(void)
{
int i;
printf("fluid_profiling_print\n");
FLUID_LOG(FLUID_INFO, "fluid_profiling_print\n");
FLUID_LOG(FLUID_INFO, "Estimated times: min/avg/max (micro seconds)");

View file

@ -51,6 +51,10 @@
#include "fluidsynth.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(fluidsynth);
#ifdef __cplusplus
extern "C" {
#endif
@ -275,8 +279,8 @@ do { strncpy(_dst,_src,_n-1); \
#define FLUID_PRINTF post
#define FLUID_FLUSH()
#else
#define FLUID_PRINTF printf
#define FLUID_FLUSH() fflush(stdout)
#define FLUID_PRINTF WINE_TRACE
#define FLUID_FLUSH()
#endif
/* People who want to reduce the size of the may do this by entirely
@ -287,7 +291,12 @@ do { strncpy(_dst,_src,_n-1); \
#if 0
#define FLUID_LOG (void)sizeof
#else
#define FLUID_LOG fluid_log
#define WINE_FLUID_DBG WINE_TRACE
#define WINE_FLUID_INFO WINE_TRACE
#define WINE_FLUID_WARN WINE_WARN
#define WINE_FLUID_ERR WINE_ERR
#define WINE_FLUID_PANIC WINE_ERR
#define FLUID_LOG( x, msg, ... ) do { WINE_ ## x( msg, ## __VA_ARGS__ ); WINE_ ## x( "\n" ); } while (0)
#endif
#if defined(DEBUG) && !defined(NDEBUG)