[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.11-157-g3d07cc8
Lennart Poettering
gitmailer-noreply at 0pointer.de
Tue Aug 26 14:20:32 PDT 2008
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 8df5b2de92cbbc1c61d5991bcb74d7b0e5abcb0f (commit)
- Log -----------------------------------------------------------------
3d07cc8... alsa_error_handler should note source of errors
-----------------------------------------------------------------------
Summary of changes:
src/modules/alsa-util.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
commit 3d07cc8112d693922b176c9dc6bf0fbc6b58a02c
Author: Ed Catmur <ed at catmur.co.uk>
Date: Tue Aug 26 23:19:43 2008 +0200
alsa_error_handler should note source of errors
When an error gets passed up from alsa-lib via alsa_error_handler, it's unclear
the source of the error. alsa_error_handler should note that the error came
from alsa-lib. (Closes #341)
diff --git a/src/modules/alsa-util.c b/src/modules/alsa-util.c
index e8c7e14..3599553 100644
--- a/src/modules/alsa-util.c
+++ b/src/modules/alsa-util.c
@@ -896,12 +896,17 @@ void pa_alsa_dump_status(snd_pcm_t *pcm) {
static void alsa_error_handler(const char *file, int line, const char *function, int err, const char *fmt,...) {
va_list ap;
+ char *alsa_file;
+
+ alsa_file = pa_sprintf_malloc("(alsa-lib)%s", file);
va_start(ap, fmt);
- pa_log_levelv_meta(PA_LOG_WARN, file, line, function, fmt, ap);
+ pa_log_levelv_meta(PA_LOG_INFO, alsa_file, line, function, fmt, ap);
va_end(ap);
+
+ pa_xfree(alsa_file);
}
static pa_atomic_t n_error_handler_installed = PA_ATOMIC_INIT(0);
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list