mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -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
|
|
@ -390,9 +390,9 @@ int pw_loop_check(struct pw_loop *loop);
|
||||||
int res = pw_loop_check(loop); \
|
int res = pw_loop_check(loop); \
|
||||||
if (res != 1) { \
|
if (res != 1) { \
|
||||||
pw_log_warn("%s called from wrong context, check thread and locking: %s", \
|
pw_log_warn("%s called from wrong context, check thread and locking: %s", \
|
||||||
__func__, spa_strerror(res)); \
|
__func__, res < 0 ? spa_strerror(res) : "Not in loop"); \
|
||||||
fprintf(stderr, "*** %s called from wrong context, check thread and locking: %s\n",\
|
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__ */ \
|
/* __VA_ARGS__ */ \
|
||||||
} \
|
} \
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue