mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
context: log more info on errors
This commit is contained in:
parent
2864e7ec75
commit
ad723e3793
2 changed files with 6 additions and 1 deletions
|
|
@ -27,13 +27,14 @@
|
|||
|
||||
#include <pulse/context.h>
|
||||
#include <pulse/timeval.h>
|
||||
#include <pulse/error.h>
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
int pa_context_set_error(pa_context *c, int error) {
|
||||
pa_assert(error >= 0);
|
||||
pa_assert(error < PA_ERR_MAX);
|
||||
pw_log_debug("context %p: error %d", c, error);
|
||||
pw_log_debug("context %p: error %d %s", c, error, pa_strerror(error));
|
||||
if (c)
|
||||
c->error = error;
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue