mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
private: improve ensure_loop debug message
The result can be 0 when the loop is not running or when the current thread is not the thread loop. Make a better message than "Success" in that case.
This commit is contained in:
parent
9eb1633b02
commit
0844f72f50
1 changed files with 3 additions and 3 deletions
|
|
@ -389,10 +389,10 @@ int pw_loop_check(struct pw_loop *loop);
|
|||
#define ensure_loop(loop,...) ({ \
|
||||
int res = pw_loop_check(loop); \
|
||||
if (res != 1) { \
|
||||
pw_log_warn("%s called from wrong context, check thread and locking: %s", \
|
||||
__func__, spa_strerror(res)); \
|
||||
pw_log_warn("%s called from wrong context, check thread and locking: %s", \
|
||||
__func__, res < 0 ? spa_strerror(res) : "Not in loop"); \
|
||||
fprintf(stderr, "*** %s called from wrong context, check thread and locking: %s\n",\
|
||||
__func__, spa_strerror(res)); \
|
||||
__func__, res < 0 ? spa_strerror(res) : "Not in loop"); \
|
||||
/* __VA_ARGS__ */ \
|
||||
} \
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue