-#define LOG_COLOR_RED "\033[0;31m"
-#define LOG_COLOR_GREEN "\033[0;32m"
-#define LOG_COLOR_BROWN "\033[0;33m"
-#define LOG_COLOR_BLUE "\033[0;34m"
-#define LOG_COLOR_PURPLE "\033[0;35m"
-#define LOG_COLOR_CYAN "\033[0;36m"
+#define LOG_COLOR_RED "\033[0;31m"
+#define LOG_COLOR_GREEN "\033[0;32m"
+#define LOG_COLOR_BROWN "\033[0;33m"
+#define LOG_COLOR_BLUE "\033[0;34m"
+#define LOG_COLOR_PURPLE "\033[0;35m"
+#define LOG_COLOR_CYAN "\033[0;36m"
- for(; i < length; i++)\
- {\
- LOGE(LOG_COLOR_BLUE" [0x%x] "LOG_COLOR_END,buffer[i]);\
- }\
+ for (; i < length; i++)\
+ LOGE(LOG_COLOR_BLUE" [0x%x] "LOG_COLOR_END, buffer[i]);\
- for(; i < length; i++)\
- {\
- LOGE(LOG_COLOR_BLUE" [%c] "LOG_COLOR_END,buffer[i]);\
- }\
+ for (; i < length; i++)\
+ LOGE(LOG_COLOR_BLUE" [%c] "LOG_COLOR_END, buffer[i]);\
struct timeval mytime;\
char buf[128]; = {0};\
memset(buf, 0x00, 128);\
gettimeofday(&mytime, NULL);\
char time_string[128] = {0,};\
sprintf(time_string, "%d.%4d", mytime.tv_sec, mytime.tv_usec);\
struct timeval mytime;\
char buf[128]; = {0};\
memset(buf, 0x00, 128);\
gettimeofday(&mytime, NULL);\
char time_string[128] = {0,};\
sprintf(time_string, "%d.%4d", mytime.tv_sec, mytime.tv_usec);\