#include <stdarg.h>
#include <string.h>
+static void snd_lib_error_default(const char *file, int line, const char *function, int errcode, const char *fmt, ...);
+
/**
* Array of error codes in US ASCII.
*/
local_error(file, line, function, errcode, fmt, arg);
return;
}
+ if (snd_lib_error != snd_lib_error_default) {
+ if (prio == SND_LOG_ERROR)
+ snd_lib_error(file, line, function, errcode, fmt, arg);
+ /* ignore other priorities - restore old behaviour */
+ return;
+ }
if (!snd_lib_log_filter(prio, interface, NULL))
return;