[sysime]Bug85553 patch 2

Change-Id: I630a0f1fcc79830b911ead907910f76514449b85
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c
index 16933b4..8427174 100644
--- a/mbtk/liblynq_lib/src/lynq_time.c
+++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -100,10 +100,9 @@
     	{
             char time_str[100] = {0};
             time_t time = 0;
-            while((time = (time_t)mbtk_at_systime()) == 0) 
+            if((time = (time_t)mbtk_at_systime()) == 0) 
             {
                 printf("NTP client fail!\n");
-                LOGI("NTP client fail!\n");
                 return NULL;
             }
             struct tm *tm_t;
diff --git a/mbtk/libmbtk_lib/src/mbtk_ntp.c b/mbtk/libmbtk_lib/src/mbtk_ntp.c
index 9b1ed84..6bfde60 100644
--- a/mbtk/libmbtk_lib/src/mbtk_ntp.c
+++ b/mbtk/libmbtk_lib/src/mbtk_ntp.c
@@ -231,6 +231,8 @@
     }
     else
     {
+        printf("NTP client fail!\n");
+        LOGE("NTP client fail!\n");
         close(sockfd);
         return 0;
     }