added function name in log
This commit is contained in:
parent
5d828b133a
commit
4916985fe5
4
main.c
4
main.c
@ -89,9 +89,9 @@ int printlog(char str[], int level, int errnum)
|
|||||||
retval = EXIT_FAILURE;
|
retval = EXIT_FAILURE;
|
||||||
}else
|
}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);
|
strcpy(fn_tmp, fn);
|
||||||
}
|
}
|
||||||
fprintf(fh, "%s", tmp);
|
fprintf(fh, "%s", tmp);
|
||||||
|
Reference in New Issue
Block a user