X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=joinpbx.cpp;h=630c59941332149e2d3364ccd8b0272076807ff4;hp=21cb91dd6c28c93bde10adb4138053a257829d11;hb=b2a665f8f1cdeb7d02c3f665d95e6a80297e21d1;hpb=d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 diff --git a/joinpbx.cpp b/joinpbx.cpp index 21cb91d..630c599 100644 --- a/joinpbx.cpp +++ b/joinpbx.cpp @@ -112,7 +112,7 @@ static int notify_state_change(int join_id, int epoint_id, int old_state, int ne /* debug function for join */ -void joinpbx_debug(class JoinPBX *joinpbx, char *function) +void joinpbx_debug(class JoinPBX *joinpbx, const char *function) { struct join_relation *relation; struct port_list *portlist; @@ -134,12 +134,12 @@ void joinpbx_debug(class JoinPBX *joinpbx, char *function) epoint = find_epoint_id(relation->epoint_id); if (!epoint) { - PDEBUG(DEBUG_JOIN, "warning: relations epoint id=%ld doesn't exists!\n", relation->epoint_id); + PDEBUG(DEBUG_JOIN, "warning: relations epoint id=%d doesn't exists!\n", relation->epoint_id); relation = relation->next; continue; } buffer[0] = '\0'; - UPRINT(strchr(buffer,0), "*** ep%ld", relation->epoint_id); + UPRINT(strchr(buffer,0), "*** ep%d", relation->epoint_id); UPRINT(strchr(buffer,0), " ifs="); portlist = epoint->ep_portlist; while(portlist) @@ -148,7 +148,7 @@ void joinpbx_debug(class JoinPBX *joinpbx, char *function) if (port) UPRINT(strchr(buffer,0), "%s,", port->p_name); else - UPRINT(strchr(buffer,0), ",", portlist->port_id); + UPRINT(strchr(buffer,0), ",", portlist->port_id); portlist = portlist->next; } // UPRINT(strchr(buffer,0), " endpoint=%d on=%s hold=%s", epoint->ep_serial, (epoint->ep_join_id==joinpbx->j_serial)?"yes":"no", (epoint->get_hold_id()==joinpbx->j_serial)?"yes":"no");