mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve debug
This commit is contained in:
parent
c658574c01
commit
7febf7ea25
6 changed files with 16 additions and 4 deletions
|
|
@ -152,11 +152,15 @@ do { \
|
|||
|
||||
#define PA_FAIL(context, error) \
|
||||
do { \
|
||||
return -pa_context_set_error((context), (error)); \
|
||||
pw_log_debug("fail at %s:%u %s()", \
|
||||
, __FILE__, __LINE__, __func__); \
|
||||
return -pa_context_set_error((context), (error)); \
|
||||
} while(false)
|
||||
|
||||
#define PA_FAIL_RETURN_ANY(context, error, value) \
|
||||
do { \
|
||||
pw_log_debug("fail at %s:%u %s()", \
|
||||
, __FILE__, __LINE__, __func__); \
|
||||
pa_context_set_error((context), (error)); \
|
||||
return value; \
|
||||
} while(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue