mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
improve debug
When we fail to read the eventfd, don't try to use the value.
This commit is contained in:
parent
1b2f64917e
commit
a898f21c87
3 changed files with 3 additions and 4 deletions
|
|
@ -1004,8 +1004,7 @@ static inline uint32_t cycle_run(struct client *c)
|
|||
pw_log_warn(NAME" %p: read failed %m", c);
|
||||
if (errno == EWOULDBLOCK)
|
||||
return 0;
|
||||
}
|
||||
if (SPA_UNLIKELY(cmd > 1))
|
||||
} else if (SPA_UNLIKELY(cmd > 1))
|
||||
pw_log_warn(NAME" %p: missed %"PRIu64" wakeups", c, cmd - 1);
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
|
|
|
|||
|
|
@ -1085,7 +1085,7 @@ static void node_on_data_fd_events(struct spa_source *source)
|
|||
if (SPA_UNLIKELY(spa_system_eventfd_read(this->data_system,
|
||||
this->data_source.fd, &cmd) < 0))
|
||||
pw_log_warn(NAME" %p: read failed %m", this);
|
||||
if (SPA_UNLIKELY(cmd > 1))
|
||||
else if (SPA_UNLIKELY(cmd > 1))
|
||||
pw_log_warn(NAME" %p: missed %"PRIu64" wakeups", this, cmd - 1);
|
||||
|
||||
spa_log_trace_fp(this->log, NAME" %p: got ready", this);
|
||||
|
|
|
|||
|
|
@ -933,7 +933,7 @@ static void node_on_fd_events(struct spa_source *source)
|
|||
|
||||
if (SPA_UNLIKELY(spa_system_eventfd_read(data_system, this->source.fd, &cmd) < 0))
|
||||
pw_log_warn(NAME" %p: read failed %m", this);
|
||||
if (SPA_UNLIKELY(cmd > 1))
|
||||
else if (SPA_UNLIKELY(cmd > 1))
|
||||
pw_log_warn(NAME" %p: missed %"PRIu64" wakeups", this, cmd - 1);
|
||||
|
||||
pw_log_trace_fp(NAME" %p: got process", this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue