浏览代码

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
 */