From: Jeesun Kim Date: Thu, 1 Jun 2017 02:16:58 +0000 (+0900) Subject: remove warning: C++11 requires a space between literal and identifier X-Git-Tag: accepted/tizen/unified/20170605.151101^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a104e2d3aa5d1761edf7076c06bc1b95a23d08c;p=platform%2Fcore%2Fpim%2Fcalendar-service.git remove warning: C++11 requires a space between literal and identifier Change-Id: I7fe50feeca59e3c5c459144a6934a42319381015 --- diff --git a/common/cal_internal.h b/common/cal_internal.h index 8c301e4..b5b4de5 100644 --- a/common/cal_internal.h +++ b/common/cal_internal.h @@ -38,19 +38,19 @@ #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") @@ -111,13 +111,13 @@ #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 diff --git a/common/cal_time.cpp b/common/cal_time.cpp index d940fc6..a13d4c5 100644 --- a/common/cal_time.cpp +++ b/common/cal_time.cpp @@ -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("Before" CAL_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("After" CAL_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; }