mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
bluetooth: be a bit more verbose if we exit due to bad poll() revents flag
This commit is contained in:
parent
48cff5b55d
commit
e9a4dec81e
1 changed files with 5 additions and 1 deletions
|
|
@ -1265,7 +1265,11 @@ static void thread_func(void *userdata) {
|
|||
pollfd = u->rtpoll_item ? pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL) : NULL;
|
||||
|
||||
if (pollfd && (pollfd->revents & ~(POLLOUT|POLLIN))) {
|
||||
pa_log_error("FD error.");
|
||||
pa_log_info("FD error: %s%s%s%s",
|
||||
pollfd->revents & POLLERR ? "POLLERR " :"",
|
||||
pollfd->revents & POLLHUP ? "POLLHUP " :"",
|
||||
pollfd->revents & POLLPRI ? "POLLPRI " :"",
|
||||
pollfd->revents & POLLNVAL ? "POLLNVAL " :"");
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue