Added more debugging code

This commit is contained in:
Michiel Broek 2002-05-12 10:52:37 +00:00
parent 7f830b807a
commit d04e45c286
2 changed files with 7 additions and 1 deletions

View File

@ -777,7 +777,9 @@ int ProcessTic(fa_list *sbl)
Syslog('f', "About to erase \"%s\"", Temp); Syslog('f', "About to erase \"%s\"", Temp);
unlink(Temp); unlink(Temp);
Syslog('f', "Done, about to free Temp");
free(Temp); free(Temp);
Syslog('f', "Done with ptic");
return 0; return 0;
} }

View File

@ -125,6 +125,7 @@ int Tic()
sort_fdlist(&fdl); sort_fdlist(&fdl);
while ((fname = pull_fdlist(&fdl)) != NULL) { while ((fname = pull_fdlist(&fdl)) != NULL) {
Syslog('f', "Tic() starting with %s", fname);
if (LoadTic(inbound, fname) == 0) if (LoadTic(inbound, fname) == 0)
rc = 1; rc = 1;
if (IsSema((char *)"upsalarm")) { if (IsSema((char *)"upsalarm")) {
@ -136,6 +137,7 @@ int Tic()
rc = 0; rc = 0;
break; break;
} }
Syslog('f', "Tic() ending with %s", fname);
} }
if (!do_quiet) { if (!do_quiet) {
@ -169,6 +171,7 @@ int LoadTic(char *inb, char *tfn)
fa_list *sbl = NULL; fa_list *sbl = NULL;
int DescCnt = FALSE; int DescCnt = FALSE;
Syslog('f', "Entering LoadTic()");
if (CFG.slow_util && do_quiet) if (CFG.slow_util && do_quiet)
usleep(1); usleep(1);
@ -467,6 +470,7 @@ int LoadTic(char *inb, char *tfn)
tic_in++; tic_in++;
rc = ProcessTic(sbl); rc = ProcessTic(sbl);
tidy_falist(&sbl); tidy_falist(&sbl);
Syslog('f', "Finishing LoadTic()");
return rc; return rc;
} }