rem: LOG(L_ERR, "ERROR: update_totag_set: no tag in to\n");
add: DBG("ERROR: update_totag_set: no tag in to\n");
context: inline static int update_totag_set(struct cell *t, struct sip_msg *ok){	struct totag_elem *i, *n;	str *tag;	char *s;	if (!ok->to || !ok->to->parsed) {		LOG(L_ERR, "ERROR: update_totag_set: to not parsed\n");		return 0;	}	tag=&get_to(ok)->tag_value;	if (!tag->s) {		LOG(L_ERR, "ERROR: update_totag_set: no tag in to\n");		return 0;	}	for (i=t->fwded_totags; i; i=i->next) {		if (i->tag.len==tag->len				&& memcmp(i->tag.s, tag->s, tag->len) ==0 ){			/* to tag already recorded */#ifdef XL_DEBUG			LOG(L_CRIT, "DEBUG: update_totag_set: totag retransmission\n");#else			DBG("DEBUG: update_totag_set: totag retransmission\n");#endif			return 1;		}	}	/* that's a new to-tag -- record it */	shm_lock();	n=(struct totag_elem*) shm_malloc_unsafe(sizeof(struct totag_elem));	s=(char *)shm_malloc_unsafe(tag->len);	shm_unlock();	if (!s || !n) {		LOG(L_ERR, "ERROR: update_totag_set: no  memory \n");		if (n) shm_free(n);		if (s) shm_free(s);		return 0;	}	memset(n, 0, sizeof(struct totag_elem));	memcpy(s, tag->s, tag->len );	n->tag.s=s;n->tag.len=tag->len;	n->next=t->fwded_totags;	t->fwded_totags=n;	DBG("DEBUG: update_totag_set: new totag \n");	return 0;}