From 3cade53dad8d40c94338bba3510c142d21ab4190 Mon Sep 17 00:00:00 2001 From: C-o-r-E Date: Fri, 27 Jul 2012 17:12:15 -0400 Subject: [PATCH] added some debug output --- libfreerdp-locale/timezone.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libfreerdp-locale/timezone.c b/libfreerdp-locale/timezone.c index a788855d7..11cd0bc45 100644 --- a/libfreerdp-locale/timezone.c +++ b/libfreerdp-locale/timezone.c @@ -1481,6 +1481,7 @@ const WINDOWS_TZID_ENTRY WindowsTimeZoneIdTable[] = char* freerdp_get_unix_timezone_identifier() { + printf("Called freerdp_get_unix_timezone_identifier\n"); FILE* fp; char* tz_env; size_t length; @@ -1491,6 +1492,7 @@ char* freerdp_get_unix_timezone_identifier() if (tz_env != NULL) { tzid = xstrdup(tz_env); + printf("tzid = [%s]\n", tzid); return tzid; } @@ -1518,6 +1520,14 @@ char* freerdp_get_unix_timezone_identifier() fclose(fp) ; } + if(tzid == NULL) + { + printf("Unable to detect time zone\n"); + } + else + { + printf("tzid = [%s]\n", tzid); + } return tzid; } @@ -1601,6 +1611,7 @@ TIME_ZONE_RULE_ENTRY* freerdp_get_current_time_zone_rule(TIME_ZONE_RULE_ENTRY* r void freerdp_time_zone_detect(TIME_ZONE_INFO* clientTimeZone) { + printf("Called time_zone_detect\n"); time_t t; struct tm* local_time; TIME_ZONE_ENTRY* tz;