remove warning: C++11 requires a space between literal and identifier 56/132056/1 accepted/tizen/unified/20170605.151101 submit/tizen/20170602.090116
authorJeesun Kim <iamjs.kim@samsung.com>
Thu, 1 Jun 2017 02:16:58 +0000 (11:16 +0900)
committerJeesun Kim <iamjs.kim@samsung.com>
Thu, 1 Jun 2017 02:17:20 +0000 (11:17 +0900)
Change-Id: I7fe50feeca59e3c5c459144a6934a42319381015

common/cal_internal.h
common/cal_time.cpp

index 8c301e4..b5b4de5 100644 (file)
 #define COLOR_END    "\033[0;m"
 
 #if defined(CAL_IPC_SERVER)
-#define IPC_ROLE COLOR_BLUE"[SERVER]"COLOR_END
+#define IPC_ROLE COLOR_BLUE "[SERVER]" COLOR_END
 #elif defined(CAL_IPC_CLIENT)
-#define IPC_ROLE COLOR_BROWN"[CLIENT]"COLOR_END
+#define IPC_ROLE COLOR_BROWN "[CLIENT]" COLOR_END
 #else
-#define IPC_ROLE COLOR_GREEN"[LIB]"COLOR_END
+#define IPC_ROLE COLOR_GREEN "[LIB]" COLOR_END
 #endif
 
 #ifdef CAL_DEBUGGING
- #define INFO(fmt, arg...) SLOGI(IPC_ROLE" " fmt, ##arg)
- #define ERR(fmt, arg...) SLOGE(IPC_ROLE" " fmt, ##arg)
- #define DBG(fmt, arg...) SLOGD(IPC_ROLE" " fmt, ##arg)
- #define WARN(fmt, arg...) SLOGD(IPC_ROLE" " fmt, ##arg)
- #define VERBOSE(fmt, arg...) SLOGV(IPC_ROLE" " fmt, ##arg)
+ #define INFO(fmt, arg...)    SLOGI(IPC_ROLE fmt, ##arg)
+ #define ERR(fmt, arg...)     SLOGE(IPC_ROLE fmt, ##arg)
+ #define DBG(fmt, arg...)     SLOGD(IPC_ROLE fmt, ##arg)
+ #define WARN(fmt, arg...)    SLOGD(IPC_ROLE fmt, ##arg)
+ #define VERBOSE(fmt, arg...) SLOGV(IPC_ROLE fmt, ##arg)
 #else /* CAL_DEBUGGING */
  #define INFO(fmt, arg...)
  #define ERR(fmt, arg...)
@@ -60,9 +60,9 @@
 #endif /* CAL_DEBUGGING */
 
 #define SEC_INFO(fmt, arg...) SECURE_LOGI(fmt, ##arg)
-#define SEC_ERR(fmt, arg...) SECURE_LOGE(fmt, ##arg)
-#define SEC_DBG(fmt, arg...) SECURE_LOGD(fmt, ##arg)
-#define SECURE(fmt, arg...) SECURE_LOGD(fmt, ##arg)
+#define SEC_ERR(fmt, arg...)  SECURE_LOGE(fmt, ##arg)
+#define SEC_DBG(fmt, arg...)  SECURE_LOGD(fmt, ##arg)
+#define SECURE(fmt, arg...)   SECURE_LOGD(fmt, ##arg)
 
 #define CAL_FN_CALL() DBG(">>>>>>>> called")
 #define CAL_FN_END() DBG("<<<<<<<< ended")
 #define CAL_START_TIMESTAMP struct timeval timeval_s = {0}; \
        struct timeval timeval_e = {0}; \
        struct timeval timeval_d = {0}; \
-       DBG(COLOR_PURPLE">>>>>"COLOR_END); \
+       DBG(COLOR_PURPLE ">>>>>" COLOR_END); \
        gettimeofday(&timeval_s, NULL);
 
 #define CAL_PRINT_TIMESTAMP gettimeofday(&timeval_e, NULL); \
        timersub(&timeval_e, &timeval_s, &timeval_d); \
        timeval_s = timeval_e; \
-       DBG(COLOR_PURPLE"<<<<< (%03d.%03dsec)"COLOR_END, timeval_d.tv_sec % 1000, timeval_d.tv_usec/1000);
+       DBG(COLOR_PURPLE "<<<<< (%03d.%03dsec)" COLOR_END, timeval_d.tv_sec % 1000, timeval_d.tv_usec/1000);
 
 #define CAL_PROFILE
 #ifdef CAL_PROFILE
index d940fc6..a13d4c5 100644 (file)
@@ -351,7 +351,7 @@ void cal_time_modify_caltime(calendar_time_s *caltime, long long int diff)
                break;
 
        case CALENDAR_TIME_LOCALTIME:
-               DBG("Before "CAL_DATETIME_FORMAT_YYYYMMDDTHHMMSS, caltime->time.date.year, caltime->time.date.month, caltime->time.date.mday,
+               DBG("BeforeCAL_DATETIME_FORMAT_YYYYMMDDTHHMMSS, caltime->time.date.year, caltime->time.date.month, caltime->time.date.mday,
                                caltime->time.date.hour, caltime->time.date.minute, caltime->time.date.second);
 
                ucal_setDateTime(ucal, caltime->time.date.year, caltime->time.date.month - 1, caltime->time.date.mday,
@@ -366,7 +366,7 @@ void cal_time_modify_caltime(calendar_time_s *caltime, long long int diff)
                caltime->time.date.minute = ucal_get(ucal, UCAL_MINUTE, &status);
                caltime->time.date.second = ucal_get(ucal, UCAL_SECOND, &status);
 
-               DBG("After "CAL_DATETIME_FORMAT_YYYYMMDDTHHMMSS, caltime->time.date.year, caltime->time.date.month, caltime->time.date.mday,
+               DBG("AfterCAL_DATETIME_FORMAT_YYYYMMDDTHHMMSS, caltime->time.date.year, caltime->time.date.month, caltime->time.date.mday,
                                caltime->time.date.hour, caltime->time.date.minute, caltime->time.date.second);
                break;
        }