rem: LOG(L_DBG, "new_presentity_no_wb=%p for uri=%.*s uuid=%.*s\n",
add: DEBUG_LOG("new_presentity_no_wb=%p for uri=%.*s uuid=%.*s\n",
context: int new_presentity_no_wb(struct pdomain *pdomain, str* _uri, presentity_t** _p){	presentity_t* presentity;	str uuid;	int size = 0;	if (!_uri || !_p) {		paerrno = PA_INTERNAL_ERROR;		LOG(L_ERR, "new_presentity_no_wb(): Invalid parameter value\n");		return -1;	}	get_presentity_uuid(&uuid, _uri);		size = sizeof(presentity_t) + _uri->len + 1 + uuid.len + 1;	presentity = (presentity_t*)shm_malloc(size);	if (!presentity) {		paerrno = PA_NO_MEMORY;		LOG(L_ERR, "new_presentity_no_wb(): No memory left: size=%d\n", size);		return -1;	}	memset(presentity, 0, sizeof(presentity_t));	msg_queue_init(&presentity->mq);	presentity->uri.s = ((char*)presentity) + sizeof(presentity_t);	strncpy(presentity->uri.s, _uri->s, _uri->len);	presentity->uri.s[_uri->len] = 0;	presentity->uri.len = _uri->len;	presentity->pdomain = pdomain;	presentity->first_qsa_subscription = 0;	presentity->last_qsa_subscription = 0;	presentity->presid = 0;	presentity->authorization_info = NULL;	presentity->uuid.s = presentity->uri.s + presentity->uri.len + 1;	strncpy(presentity->uuid.s, uuid.s, uuid.len);	presentity->uuid.s[uuid.len] = 0;	presentity->uuid.len = uuid.len;	*_p = presentity;	str_free_content(&uuid);	LOG(L_DBG, "new_presentity_no_wb=%p for uri=%.*s uuid=%.*s\n", 			presentity, presentity->uri.len, ZSW(presentity->uri.s),			presentity->uuid.len, ZSW(presentity->uuid.s));	return 0;}