소스 검색

memlog introduced

Jiri Kuthan 23 년 전
부모
커밋
609ada4201
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      globals.h
  2. 2 0
      main.c

+ 3 - 0
globals.h

@@ -70,4 +70,7 @@ extern int reply_to_via;
 
 extern int is_main;
 
+/* debugging level for dumping memory status */
+extern int memlog;
+
 #endif

+ 2 - 0
main.c

@@ -207,6 +207,8 @@ int log_stderr = 0;
 int check_via =  0;        
 /* shall use stateful synonym branches? faster but not reboot-safe */
 int syn_branch = 1;
+/* debugging level for memory stats */
+int memlog = L_DBG;
 /* should replies include extensive warnings? by default yes,
    good for trouble-shooting
 */