2
0
Эх сурвалжийг харах

topos: convert to memory logging helper

Henning Westerholt 5 жил өмнө
parent
commit
b06268f071

+ 1 - 2
src/modules/topos/tps_msg.c

@@ -163,8 +163,7 @@ int tps_add_headers(sip_msg_t *msg, str *hname, str *hbody, int hpos)
 	hs.len = hname->len + 2 + hbody->len;
 	hs.s  = (char*)pkg_malloc(hs.len + 3);
 	if (hs.s==NULL) {
-		LM_ERR("no pkg memory left (%.*s - %d)\n",
-				hname->len, hname->s, hs.len);
+		PKG_MEM_ERROR_FMT("(%.*s - %d)\n", hname->len, hname->s, hs.len);
 		return -1;
 	}
 	memcpy(hs.s, hname->s, hname->len);