Browse code

topos: convert to memory logging helper

Henning Westerholt authored on 13/02/2020 21:52:04
Showing 1 changed files
... ...
@@ -163,8 +163,7 @@ int tps_add_headers(sip_msg_t *msg, str *hname, str *hbody, int hpos)
163 163
 	hs.len = hname->len + 2 + hbody->len;
164 164
 	hs.s  = (char*)pkg_malloc(hs.len + 3);
165 165
 	if (hs.s==NULL) {
166
-		LM_ERR("no pkg memory left (%.*s - %d)\n",
167
-				hname->len, hname->s, hs.len);
166
+		PKG_MEM_ERROR_FMT("(%.*s - %d)\n", hname->len, hname->s, hs.len);
168 167
 		return -1;
169 168
 	}
170 169
 	memcpy(hs.s, hname->s, hname->len);