]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Minor fix to the debug log about timesync being disabled
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 25 Feb 2025 01:42:24 +0000 (17:42 -0800)
committerKruti Pendharkar <kp025370@broadcom.com>
Tue, 25 Feb 2025 01:42:24 +0000 (17:42 -0800)
This change intends to log which type of timesync has been disabled to
avoid potential confusion.

open-vm-tools/services/plugins/timeSync/timeSync.c

index 7c07614fdaf5fb110cc523748717dbd30af42a6c..a8282b2edbfeafbbd816413e97707037e6d8a33e 100644 (file)
@@ -757,7 +757,8 @@ TimeSyncDoSync(Bool slewCorrection,
     * seamlessly, this also avoids warning logs on the FALSE returns.
     */
    if (disableAll || (disablePeriodic && syncType == TIMESYNC_PERIODIC)) {
-      g_debug("Time synchronization is disabled.\n");
+      g_debug("%s time synchronization is disabled.\n",
+              disableAll ? "All" : "Periodic");
       return TRUE;
    }
    return TimeSyncDoSyncWork(slewCorrection, syncType, allowBackwardSync,