summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/opiealarm/opiealarm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c
index a4d46ed..71367b3 100644
--- a/core/opiealarm/opiealarm.c
+++ b/core/opiealarm/opiealarm.c
@@ -230,2 +230,4 @@ int suspend ( int fix_rtc )
230 fprintf ( log, "Setting RTC alarm to %d\n", alrt ); 230 fprintf ( log, "Setting RTC alarm to %d\n", alrt );
231
232 tzset ( );
231 233
@@ -242,2 +244,3 @@ int suspend ( int fix_rtc )
242 // get RTC time 244 // get RTC time
245 memset ( &rtc, 0, sizeof ( struct tm ));
243 if ( ioctl ( fd, RTC_ALM_SET, &rtc ) < 0 ) 246 if ( ioctl ( fd, RTC_ALM_SET, &rtc ) < 0 )
@@ -246,2 +249,9 @@ int suspend ( int fix_rtc )
246 249
250 fprintf ( log, "System time: %02d.%02d.%04d %02d:%02d:%02d DST: %d (TZ: %s, offset: %d)\n", sys. tm_mday, sys. tm_mon + 1, sys. tm_year + 1900, sys. tm_hour, sys. tm_min, sys. tm_sec, sys. tm_isdst, sys. tm_zone, sys. tm_gmtoff );
251 fprintf ( log, "RTC time: %02d.%02d.%04d %02d:%02d:%02d DST: %d (TZ: %s, offset: %d)\n", rtc. tm_mday, rtc. tm_mon + 1, rtc. tm_year + 1900, rtc. tm_hour, rtc. tm_min, rtc. tm_sec, rtc. tm_isdst, rtc. tm_zone, rtc. tm_gmtoff );
252 fprintf ( log, "Wakeup time: %02d.%02d.%04d %02d:%02d:%02d DST: %d (TZ: %s, offset: %d)\n", alr. tm_mday, alr. tm_mon + 1, alr. tm_year + 1900, alr. tm_hour, alr. tm_min, alr. tm_sec, alr. tm_isdst, alr. tm_zone, alr. tm_gmtoff );
253
254 fprintf ( log, "System/RTC diff: %d seconds\n", ( syst - rtct ) - sys. tm_gmtoff );
255
256
247 rtc_sys_diff = ( syst - rtct ) - sys. tm_gmtoff; 257 rtc_sys_diff = ( syst - rtct ) - sys. tm_gmtoff;