Commit b5903214 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

fluidsynth: Use Wine debugging facility for traces.

parent f768d6b3
......@@ -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)");
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment