mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Change error message handling
Change the handling of non-fatal errors. Now the non-fatal error messages are not shown in stderr and no assert() as default. The behavior can be changed with LIBASOUND_DEBUG environment variable.
This commit is contained in:
parent
73aa2549d9
commit
2b54677fdb
9 changed files with 462 additions and 165 deletions
14
NOTES
14
NOTES
|
|
@ -14,3 +14,17 @@ this API, because they are no longer used:
|
|||
|
||||
#define ALSA_PCM_NEW_HW_PARAMS_API
|
||||
#define ALSA_PCM_NEW_SW_PARAMS_API
|
||||
|
||||
|
||||
Verbose Error Messages
|
||||
======================
|
||||
|
||||
Since version 1.0.8, assert() for some non-fatal errors are removed
|
||||
and error messages are no longer shown to stderr as default. Instead,
|
||||
the error messages appear only when the environment variable
|
||||
LIBASOUND_DEBUG is set. When LIBASOUND_DEBUG=assert is set, the
|
||||
default error message handler calls assert() to catch with a
|
||||
debugger.
|
||||
|
||||
This feature is disabled when --with-debug=no is passed to configure,
|
||||
i.e. no strict checking is done in alsa-lib.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue