daemon: Fix invalid memory access

This fixes negative pid reports on 32bit systems
This commit is contained in:
Nedko Arnaudov 2010-04-24 16:56:20 +03:00
parent 954c10fd93
commit c2c96d1fa4
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ lookup_port(
jclient = ladish_graph_get_port_client(virtualizer_ptr->jack_graph, port);
if (jclient == NULL)
{
log_error("Port %"PRIu64" without jack client was (dis)connected");
log_error("Port %"PRIu64" without jack client was (dis)connected", port_id);
return false;
}
@ -279,7 +279,7 @@ static void client_appeared(void * context, uint64_t id, const char * jack_name)
}
else
{
log_info("client pid is %"PRId64, pid);
log_info("client pid is %"PRId64, (int64_t)pid);
if (pid != 0) /* skip internal clients that will match the pending clients in the graph, both have zero pid */
{