ice: some improved debugging messages

This commit is contained in:
Alfred E. Heggestad 2012-12-31 04:23:24 +00:00
parent d875392a83
commit 03d1e7faf1
2 changed files with 6 additions and 4 deletions

View file

@ -211,7 +211,7 @@ static void concluding_ice(struct icem_comp *comp)
CANDPAIR_SUCCEEDED);
if (!cp) {
DEBUG_WARNING("{%s.%u} conclude: no valid candpair found"
" (validl=%u)\n",
" (validlist=%u)\n",
comp->icem->name, comp->id,
list_count(&comp->icem->validl));
return;
@ -251,7 +251,7 @@ void icem_checklist_update(struct icem *icem)
if (!icem_candpair_find_compid(&icem->validl, comp->id)) {
DEBUG_WARNING("{%s.%u} no valid candidate pair"
" (validl=%u)\n",
" (validlist=%u)\n",
icem->name, comp->id,
list_count(&icem->validl));
err = ENOENT;

View file

@ -282,8 +282,10 @@ int icem_add_chan(struct icem *icem, uint8_t compid, const struct sa *raddr)
static void purge_relayed(struct icem *icem, struct icem_comp *comp)
{
DEBUG_NOTICE("{%s.%u} purge local RELAY candidates\n",
icem->name, comp->id);
if (comp->turnc) {
DEBUG_NOTICE("{%s.%u} purge local RELAY candidates\n",
icem->name, comp->id);
}
/*
* Purge all Candidate-Pairs where the Local candidate