78,9 → 78,10 |
connections[phone].proto = NULL; |
} |
|
static void ipc_m_print(ipcarg_t method) |
static void ipc_m_print(proto_t *proto, ipcarg_t method) |
{ |
ipc_m_desc_t *desc; |
oper_t *oper; |
|
/* FIXME: too slow */ |
desc = ipc_methods; |
93,6 → 94,14 |
++desc; |
} |
|
if (proto != NULL) { |
oper = proto_get_oper(proto, method); |
if (oper != NULL) { |
printf("%s (%d)", oper->name, method); |
return; |
} |
} |
|
printf("%d", method); |
} |
|
109,15 → 118,15 |
void ipcp_call_out(int phone, ipc_call_t *call, ipc_callid_t hash) |
{ |
pending_call_t *pcall; |
char *proto_name; |
proto_t *proto; |
|
if (have_conn[phone]) proto_name = connections[phone].proto->name; |
else proto_name = "n/a"; |
if (have_conn[phone]) proto = connections[phone].proto; |
else proto = NULL; |
|
// printf("ipcp_call_out()\n"); |
printf("call id: 0x%x, phone: %d, proto: %s, method: ", hash, phone, |
proto_name); |
ipc_m_print(IPC_GET_METHOD(*call)); |
(proto ? proto->name : "n/a")); |
ipc_m_print(proto, IPC_GET_METHOD(*call)); |
printf(" args: (%u, %u, %u, %u, %u)\n", |
IPC_GET_ARG1(*call), |
IPC_GET_ARG2(*call), |