mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Add printf checks for proxy_error and resource_error
Add an error variant without checks.
This commit is contained in:
parent
f2b7f2dc6d
commit
e40fbf8cc4
20 changed files with 65 additions and 43 deletions
|
|
@ -124,7 +124,7 @@ static int client_endpoint_stream_update(void *object,
|
|||
pw_properties_free(props);
|
||||
free(stream);
|
||||
pw_log_error(NAME" %p: cannot update stream: no memory", this);
|
||||
pw_resource_error(this->resource, -ENOMEM,
|
||||
pw_resource_errorf(this->resource, -ENOMEM,
|
||||
NAME" %p: cannot update stream: no memory", this);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ static int client_session_link_update(void *object,
|
|||
free(link);
|
||||
pw_log_error(NAME" %p: cannot update link: no memory", this);
|
||||
pw_resource_error(this->resource, -ENOMEM,
|
||||
NAME" %p: cannot update link: no memory", this);
|
||||
"cannot update link: no memory");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ int endpoint_link_update(struct endpoint_link *this,
|
|||
no_mem:
|
||||
pw_log_error(NAME" %p: can't update: no memory", this);
|
||||
pw_resource_error(this->client_sess->resource, -ENOMEM,
|
||||
NAME" %p: can't update: no memory", this);
|
||||
"can't update: no memory");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ static int endpoint_link_bind(void *_data, struct pw_client *client,
|
|||
no_mem:
|
||||
pw_log_error(NAME" %p: can't create resource: no memory", this);
|
||||
pw_resource_error(this->client_sess->resource, -ENOMEM,
|
||||
NAME" %p: can't create resource: no memory", this);
|
||||
"can't create resource: no memory");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue