about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-02-14 20:09:21 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-14 20:09:21 +0100
commit1daf15c525fbe982fdde7f35e6e9a900943fe3dc (patch)
tree6b187ef21692ce4e501bb5e560ea896e9b18093a /src
parent108949345f478eae826104b7047ed2bb5c35936f (diff)
downloadbox64-1daf15c525fbe982fdde7f35e6e9a900943fe3dc.tar.gz
box64-1daf15c525fbe982fdde7f35e6e9a900943fe3dc.zip
fprintf wrapped libasound dummy_error_handler to stderr instead of box trace file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibasound.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibasound.c b/src/wrapped/wrappedlibasound.c
index 6d7420c6..11fffc68 100755
--- a/src/wrapped/wrappedlibasound.c
+++ b/src/wrapped/wrappedlibasound.c
@@ -85,12 +85,11 @@ static void dummy_error_handler(const char *file, int line, const char *function
     (void)function; (void)err;
     va_list ap;
 
-    fprintf(ftrace, "Warning: this is a dummy snd_lib error handler\n");
-    fprintf(ftrace, "Error in file %s on line %i: ", file, line);
+    fprintf(stderr, "Warning: this is a dummy snd_lib error handler\n");
+    fprintf(stderr, "Error in file %s on line %i: ", file, line);
     va_start(ap, fmt);
-    vfprintf(ftrace, fmt, ap);
+    vfprintf(stderr, fmt, ap);
     va_end(ap);
-    fflush(ftrace);
 }
 
 static void empty_error_handler(const char *file, int line, const char *function, int err, const char *fmt, ...)