X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=endpoint.cpp;h=3c59f5390ab01241baf8b91ec236495dc8fe1377;hp=cda79c2168c094c0d6c0d2d46705a255b000b55e;hb=refs%2Fheads%2Fbackup2;hpb=b0bd74e35e935aa976b68c594def4e8d2c22ef95 diff --git a/endpoint.cpp b/endpoint.cpp index cda79c2..3c59f53 100644 --- a/endpoint.cpp +++ b/endpoint.cpp @@ -67,8 +67,12 @@ Endpoint::Endpoint(unsigned int port_id, unsigned int join_id) if (port_id) { port = find_port_id(port_id); if (port) { +#ifdef WITH_MISDN if ((port->p_type&PORT_CLASS_MASK) == PORT_CLASS_mISDN) earlyb = ((class PmISDN *)port)->p_m_mISDNport->earlyb; +#else + earlyb = 0; +#endif if (!portlist_new(port_id, port->p_type, earlyb)) FATAL("No memory for portlist.\n"); } @@ -105,7 +109,7 @@ Endpoint::~Endpoint(void) portlist = ep_portlist; while(portlist) { if (portlist->port_id) { - PERROR("warning: still relation to port (portlist list)\n"); + PERROR("Endpoint(%d) warning: still relation to port %d (portlist list)\n", ep_serial, portlist->port_id); } mtemp = portlist; portlist = portlist->next; @@ -143,7 +147,7 @@ struct port_list *Endpoint::portlist_new(unsigned int port_id, int port_type, in /* portlist structure */ portlist = (struct port_list *)MALLOC(sizeof(struct port_list)); ememuse++; - PDEBUG(DEBUG_EPOINT, "EPOINT(%d) allocating port_list.\n", ep_serial); + PDEBUG(DEBUG_EPOINT, "EPOINT(%d) allocating port_list, attaching to port %d\n", ep_serial, port_id); /* add port_list to chain */ portlist->next = NULL; @@ -182,7 +186,7 @@ void Endpoint::free_portlist(struct port_list *portlist) *tempp=portlist->next; /* free */ - PDEBUG(DEBUG_EPOINT, "EPOINT(%d) removed port_list from endpoint\n", ep_serial); + PDEBUG(DEBUG_EPOINT, "EPOINT(%d) removed port %d from port_list of endpoint\n", ep_serial, portlist->port_id); FREE(portlist, sizeof(struct port_list)); ememuse--; }