]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Changed indentation of some debug messages.
authorThibault Godouet <yo8192@users.noreply.github.com>
Tue, 31 Dec 2024 23:55:53 +0000 (23:55 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Tue, 31 Dec 2024 23:55:53 +0000 (23:55 +0000)
database.c
fcron.c
save.c

index 4bf2aabc2139b2e925f85568132ce696ea67d3b1..c01ed376f3fa7355573e477c8e201340939f9c74 100644 (file)
@@ -136,7 +136,7 @@ mktime_no_dst(struct tm *t)
 
     ti1 = mktime(&t2);
     /* */
-    debug("after  mktime() : %d:%d isdst:%d ti:%ld\n",
+    debug("    after mktime() : %d:%d isdst:%d ti:%ld\n",
           t2.tm_hour, t2.tm_min, t2.tm_isdst, ti1);
     /* */
 
@@ -695,7 +695,7 @@ set_wday(struct tm *date)
     if (date->tm_wday >= 7)
         date->tm_wday -= 7;
 
-    debug("   dow of %04d-%02d-%02d : %d", (date->tm_year + 1900),
+    debug("    dow of %04d-%02d-%02d : %d", (date->tm_year + 1900),
           (date->tm_mon + 1), date->tm_mday, date->tm_wday);
 
 }
@@ -921,7 +921,7 @@ move_time_to(int where, cl_t * line, struct tm *ftime)
     }
 
     /* */
-    debug("   ignore: %d %d %d %d %d", ignore_mins, ignore_hrs,
+    debug("     ignore: %d %d %d %d %d", ignore_mins, ignore_hrs,
           ignore_days, ignore_mons, ignore_dow);
     /* */
 
diff --git a/fcron.c b/fcron.c
index ca9199206da312a7051b6339b090dff7c257d8d5..9d292a60684ac3888cf2348719a982df98a28846 100644 (file)
--- a/fcron.c
+++ b/fcron.c
@@ -925,10 +925,10 @@ main_loop()
         check_signal();
         check_suspend(slept_from, nwt, &sig_cont, &main_select);
         reset_sig_cont();
-        debug_print_tstamp("after check_signal and suspend");
+        debug_print_tstamp("    after check_signal and suspend");
 
         test_jobs();
-        debug_print_tstamp("after test_jobs");
+        debug_print_tstamp("    after test_jobs");
 
         while (serial_num > 0 && serial_running < serial_max_running) {
             run_serial_job();
@@ -944,7 +944,7 @@ main_loop()
             /* save all files */
             save_file(NULL);
         }
-        debug_print_tstamp("after save");
+        debug_print_tstamp("    after save");
 #if defined(FCRONDYN) && defined(HAVE_GETTIMEOFDAY)
         /* check if there's a new connection, a new command to answer, etc ... */
         /* we do that *after* other checks, to avoid Denial Of Service attacks */
@@ -952,7 +952,7 @@ main_loop()
 #endif
 
         nwt = check_lavg(save);
-        debug_print_tstamp("after check_lavg");
+        debug_print_tstamp("    after check_lavg");
         debug("next wake time : %s", ctime(&nwt));
 
         check_signal();
diff --git a/save.c b/save.c
index 05f81b7db6eefdd107969c9a8b1bf3cff8828d98..e5ddb5ba9e4c1bf24297d3e67cda9979ecf13b76 100644 (file)
--- a/save.c
+++ b/save.c
@@ -147,7 +147,7 @@ write_buf_to_disk(int fd, char *write_buf, int *buf_used)
     }
 
     /* */
-    debug("write_buf_to_disk() : written %d/%d, %d (re)try(ies)", written,
+    debug("    write_buf_to_disk() : written %d/%d, %d (re)try(ies)", written,
           to_write, num_retries);
     /* */