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

daemonize.c: logging: DBG -> LM_DBG

Ovidiu Sas 10 лет назад
Родитель
Сommit
2571b99cf3
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      daemonize.c

+ 3 - 3
daemonize.c

@@ -488,7 +488,7 @@ int increase_open_fds(int target)
 		goto error;
 	}
 	orig=lim;
-	DBG("current open file limits: %lu/%lu\n",
+	LM_DBG("current open file limits: %lu/%lu\n",
 			(unsigned long)lim.rlim_cur, (unsigned long)lim.rlim_max);
 	if ((lim.rlim_cur==RLIM_INFINITY) || (target<=lim.rlim_cur))
 		/* nothing to do */
@@ -503,7 +503,7 @@ int increase_open_fds(int target)
 		lim.rlim_max=target;
 		lim.rlim_cur=target;
 	}
-	DBG("increasing open file limits to: %lu/%lu\n",
+	LM_DBG("increasing open file limits to: %lu/%lu\n",
 			(unsigned long)lim.rlim_cur, (unsigned long)lim.rlim_max);
 	if (setrlimit(RLIMIT_NOFILE, &lim)<0){
 		LM_CRIT("cannot increase the open file limit to"
@@ -580,7 +580,7 @@ int set_core_dump(int enable, long unsigned int size)
 		}
 	}
 done:
-	DBG("core dump limits set to %lu\n", (unsigned long)newlim.rlim_cur);
+	LM_DBG("core dump limits set to %lu\n", (unsigned long)newlim.rlim_cur);
 	return 0;
 error:
 	return -1;