diff options
author | malc <av1474@comtv.ru> | 2010-01-17 02:03:30 +0300 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2010-01-17 02:03:30 +0300 |
commit | 82584e212dd60b531676c19d8988fec4c4222f63 (patch) | |
tree | 79282223bdfc0dd6133951e5b8ac4ba25ea35e21 /audio/audio.c | |
parent | ff5414990645653bf43bf64adfc1ca77ffb9edcb (diff) |
audio: include more information into audio_bug's output
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/audio/audio.c b/audio/audio.c index a5305c492b..2a20e5be1b 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -115,6 +115,9 @@ struct mixeng_volume nominal_volume = { #ifdef AUDIO_IS_FLAWLESS_AND_NO_CHECKS_ARE_REQURIED #error No its not #else +static void audio_print_options (const char *prefix, + struct audio_option *opt); + int audio_bug (const char *funcname, int cond) { if (cond) { @@ -122,10 +125,16 @@ int audio_bug (const char *funcname, int cond) AUD_log (NULL, "A bug was just triggered in %s\n", funcname); if (!shown) { + struct audio_driver *d; + shown = 1; AUD_log (NULL, "Save all your work and restart without audio\n"); AUD_log (NULL, "Please send bug report to av1474@comtv.ru\n"); AUD_log (NULL, "I am sorry\n"); + d = glob_audio_state.drv; + if (d) { + audio_print_options (d->name, d->options); + } } AUD_log (NULL, "Context:\n"); |