LADI
/
spa
1
Fork 0

jack: improve error reporting

This commit is contained in:
Wim Taymans 2023-04-27 09:52:35 +02:00
parent 3cae535da0
commit 0ac465854b
1 changed files with 3 additions and 3 deletions

View File

@ -1746,7 +1746,7 @@ static int client_node_set_io(void *data,
mm = pw_mempool_map_id(c->pool, mem_id,
PW_MEMMAP_FLAG_READWRITE, offset, size, tag);
if (mm == NULL) {
pw_log_warn("%p: can't map memory id %u", c, mem_id);
pw_log_warn("%p: can't map memory id %u: %m", c, mem_id);
return -errno;
}
ptr = mm->ptr;
@ -2392,7 +2392,7 @@ static int client_node_port_set_io(void *data,
mm = pw_mempool_map_id(c->pool, mem_id,
PW_MEMMAP_FLAG_READWRITE, offset, size, tag);
if (mm == NULL) {
pw_log_warn("%p: can't map memory id %u", c, mem_id);
pw_log_warn("%p: can't map memory id %u: %m", c, mem_id);
res = -EINVAL;
goto exit_free;
}
@ -2456,7 +2456,7 @@ static int client_node_set_activation(void *data,
mm = pw_mempool_map_id(c->pool, mem_id,
PW_MEMMAP_FLAG_READWRITE, offset, size, NULL);
if (mm == NULL) {
pw_log_warn("%p: can't map memory id %u", c, mem_id);
pw_log_warn("%p: can't map memory id %u: %m", c, mem_id);
res = -EINVAL;
goto exit;
}