diff --git a/main.c b/main.c index 527ce3d..b0cc578 100644 --- a/main.c +++ b/main.c @@ -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);