1
0

added function name in log

This commit is contained in:
Daniel Tartavel 2020-06-08 15:55:50 +02:00
parent 5d828b133a
commit 4916985fe5

4
main.c
View File

@ -89,9 +89,9 @@ int printlog(char str[], int level, int errnum)
retval = EXIT_FAILURE;
}else
{
if( strcmp(fn, fn_tmp) != 0 )
if( strcmp(fn_tmp, fn) != 0 )
{
fprintf(fh, "%s", fn);
fprintf(fh, "***************** %s ******************", fn);
strcpy(fn_tmp, fn);
}
fprintf(fh, "%s", tmp);