Просмотр исходного кода

error.c: logging: convert LOG to LM_*

Ovidiu Sas 11 лет назад
Родитель
Сommit
4c2e5693fe
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      error.c

+ 2 - 2
error.c

@@ -216,7 +216,7 @@ void get_reply_status( str *status, struct sip_msg *reply, int code )
 	status->s=0;
 
 	if (reply==0) {
-		LOG(L_CRIT, "BUG: get_reply_status called with 0 msg\n");
+		LM_CRIT("0 msg\n");
 		return;
 	}
 
@@ -229,7 +229,7 @@ void get_reply_status( str *status, struct sip_msg *reply, int code )
 	status->len=phrase.len+3/*code*/+1/*space*/; 
 	status->s=pkg_malloc(status->len+1/*ZT */);
 	if (!status->s) {
-		LOG(L_ERR, "ERROR: get_reply_status: no mem\n");
+		LM_ERR("no mem\n");
 		return;
 	}
 	status->s[3]=' ';