From 69ebd332eed660ad5930ac58656db1c6cf84f00c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 11 Nov 2005 19:50:57 +0000 Subject: [PATCH] Added debug logging for segfault tracing --- mbfido/announce.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mbfido/announce.c b/mbfido/announce.c index 3ef95f84..4c18ae4f 100644 --- a/mbfido/announce.c +++ b/mbfido/announce.c @@ -162,6 +162,7 @@ void Uploads() int StartMsg(void); int StartMsg(void) { + Syslog('m', "StartMsg()"); if (!Msg_Open(newfiles.Area)) return -1; @@ -202,6 +203,8 @@ void FinishMsg(int Final, int filepos) char *temp; FILE *fp, *fi; + Syslog('m', "FinishMsg(%s, %d)", Final ? "TRUE":"FALSE", filepos); + temp = calloc(PATH_MAX, sizeof(char)); if (Final && ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL)) { @@ -349,6 +352,7 @@ int Report(gr_list *ta, int filepos) */ if (Msg.Size > (CFG.new_split * 1024)) { MsgCount++; + Syslog('m', "Report() splitting report"); FinishMsg(FALSE, finalpos); StartMsg(); }