Browse code

dset.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 20:33:48
Showing 1 changed files
... ...
@@ -334,7 +334,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
334 334
 	 * of branches, don't try new ones 
335 335
 	 */
336 336
 	if (unlikely(nr_branches == MAX_BRANCHES - 1)) {
337
-		LOG(L_ERR, "max nr of branches exceeded\n");
337
+		LM_ERR("max nr of branches exceeded\n");
338 338
 		ser_error = E_TOO_MANY_BRANCHES;
339 339
 		return -1;
340 340
 	}
... ...
@@ -350,14 +350,14 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
350 350
 	}
351 351
 
352 352
 	if (unlikely(luri.len > MAX_URI_SIZE - 1)) {
353
-		LOG(L_ERR, "too long uri: %.*s\n", luri.len, luri.s);
353
+		LM_ERR("too long uri: %.*s\n", luri.len, luri.s);
354 354
 		return -1;
355 355
 	}
356 356
 
357 357
 	/* copy the dst_uri */
358 358
 	if (dst_uri && dst_uri->len && dst_uri->s) {
359 359
 		if (unlikely(dst_uri->len > MAX_URI_SIZE - 1)) {
360
-			LOG(L_ERR, "too long dst_uri: %.*s\n", dst_uri->len, dst_uri->s);
360
+			LM_ERR("too long dst_uri: %.*s\n", dst_uri->len, dst_uri->s);
361 361
 			return -1;
362 362
 		}
363 363
 		memcpy(branches[nr_branches].dst_uri, dst_uri->s, dst_uri->len);
... ...
@@ -371,7 +371,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
371 371
 	/* copy the path string */
372 372
 	if (unlikely(path && path->len && path->s)) {
373 373
 		if (unlikely(path->len > MAX_PATH_SIZE - 1)) {
374
-			LOG(L_ERR, "too long path: %.*s\n", path->len, path->s);
374
+			LM_ERR("too long path: %.*s\n", path->len, path->s);
375 375
 			return -1;
376 376
 		}
377 377
 		memcpy(branches[nr_branches].path, path->s, path->len);
... ...
@@ -394,7 +394,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
394 394
 	/* copy instance string */
395 395
 	if (unlikely(instance && instance->len && instance->s)) {
396 396
 		if (unlikely(instance->len > MAX_INSTANCE_SIZE - 1)) {
397
-			LOG(L_ERR, "too long instance: %.*s\n",
397
+			LM_ERR("too long instance: %.*s\n",
398 398
 			    instance->len, instance->s);
399 399
 			return -1;
400 400
 		}
... ...
@@ -413,7 +413,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
413 413
 	/* copy ruid string */
414 414
 	if (unlikely(ruid && ruid->len && ruid->s)) {
415 415
 		if (unlikely(ruid->len > MAX_RUID_SIZE - 1)) {
416
-			LOG(L_ERR, "too long ruid: %.*s\n",
416
+			LM_ERR("too long ruid: %.*s\n",
417 417
 			    ruid->len, ruid->s);
418 418
 			return -1;
419 419
 		}
... ...
@@ -428,7 +428,7 @@ int append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
428 428
 
429 429
 	if (unlikely(location_ua && location_ua->len && location_ua->s)) {
430 430
 		if (unlikely(location_ua->len > MAX_UA_SIZE)) {
431
-			LOG(L_ERR, "too long location_ua: %.*s\n",
431
+			LM_ERR("too long location_ua: %.*s\n",
432 432
 			    location_ua->len, location_ua->s);
433 433
 			return -1;
434 434
 		}
... ...
@@ -492,7 +492,7 @@ char* print_dset(struct sip_msg* msg, int* len)
492 492
 	*len += CONTACT_LEN + CRLF_LEN + (cnt - 1) * CONTACT_DELIM_LEN;
493 493
 
494 494
 	if (*len + 1 > MAX_REDIRECTION_LEN) {
495
-		LOG(L_ERR, "ERROR: redirection buffer length exceed\n");
495
+		LM_ERR("redirection buffer length exceed\n");
496 496
 		goto error;
497 497
 	}
498 498