Modify printed RTC format for year in board_app_initialize 51/106951/1
authorjc_.kim <jc_.kim@samsung.com>
Mon, 26 Dec 2016 01:55:22 +0000 (10:55 +0900)
committerjc_.kim <jc_.kim@samsung.com>
Mon, 26 Dec 2016 01:55:22 +0000 (10:55 +0900)
RTC year is based on CONFIG_RTC_BASE_YEAR

Change-Id: I6b3e805aa57b0f9a8b16fef9e8007a73837600c0

os/arch/arm/src/sidk_s5jt200/src/s5jt200_tash.c

index bd586ac..00abfc5 100644 (file)
@@ -170,7 +170,7 @@ int board_app_initialize(void)
 
 #if defined(CONFIG_RTC) && defined(CONFIG_RTC_DRIVER) && defined(CONFIG_S5J_RTC)
        up_rtc_getdatetime(&tp);
-       lldbg("RTC getdatetime 20%d/%d/%d/%d/%d/%d\n", tp.tm_year, tp.tm_mon + 1, tp.tm_mday, tp.tm_hour, tp.tm_min, tp.tm_sec);
+       lldbg("RTC getdatetime %d/%d/%d/%d/%d/%d\n", tp.tm_year + CONFIG_RTC_BASE_YEAR, tp.tm_mon + 1, tp.tm_mday, tp.tm_hour, tp.tm_min, tp.tm_sec);
        lldbg("Version Info :\n");
        lldbg("tinyARA %s\n", __TIMESTAMP__);
 #endif