mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
context: make some errors less verbose, like libpulse
This commit is contained in:
parent
6a4da8a6b3
commit
a82a5dc26a
2 changed files with 1 additions and 5 deletions
|
|
@ -33,7 +33,7 @@
|
|||
int pa_context_set_error(pa_context *c, int error) {
|
||||
pa_assert(error >= 0);
|
||||
pa_assert(error < PA_ERR_MAX);
|
||||
pw_log_error("context %p: error %d", c, error);
|
||||
pw_log_debug("context %p: error %d", c, error);
|
||||
if (c)
|
||||
c->error = error;
|
||||
return error;
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@ int pa_context_set_error(pa_context *c, int error);
|
|||
#define PA_CHECK_VALIDITY(context, expression, error) \
|
||||
do { \
|
||||
if (!(expression)) { \
|
||||
fprintf(stderr, "'%s' failed at %s:%u %s()", \
|
||||
#expression , __FILE__, __LINE__, __func__); \
|
||||
return -pa_context_set_error((context), (error)); \
|
||||
} \
|
||||
} while(false)
|
||||
|
|
@ -119,8 +117,6 @@ do { \
|
|||
#define PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, value) \
|
||||
do { \
|
||||
if (!(expression)) { \
|
||||
fprintf(stderr, "'%s' failed at %s:%u %s()", \
|
||||
#expression , __FILE__, __LINE__, __func__); \
|
||||
pa_context_set_error((context), (error)); \
|
||||
return value; \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue