mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: improve permission debug
This commit is contained in:
parent
af2e7b630a
commit
a0e0a4d9d2
1 changed files with 4 additions and 2 deletions
|
|
@ -237,8 +237,10 @@ process_messages(struct client_data *data)
|
|||
|
||||
if ((required & permissions) != required) {
|
||||
pw_resource_errorf_id(resource, msg->id,
|
||||
-EACCES, "no permission to call method %u on %u (requires %08x, have %08x)",
|
||||
msg->opcode, msg->id, required, permissions);
|
||||
-EACCES, "no permission to call method %u on %u "
|
||||
"(requires "PW_PERMISSION_FORMAT", have "PW_PERMISSION_FORMAT")",
|
||||
msg->opcode, msg->id,
|
||||
PW_PERMISSION_ARGS(required), PW_PERMISSION_ARGS(permissions));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue