aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-25 12:29:38 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-25 12:29:38 +0900
commitf740abc24bd20d15b9e6b0331e4c65204e4cfff5 (patch)
tree4c759b0f1fb29a86ecb0a89c60a48c846bf31e73
parent00ee9b48ed5d69a7b4c752d648914e1afd4f41df (diff)
Change-Id: I624705964e304047876295716b6c07e4e9a87473 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--include/hmi-debug.h12
-rw-r--r--src/main.cpp8
2 files changed, 10 insertions, 10 deletions
diff --git a/include/hmi-debug.h b/include/hmi-debug.h
index a70b49b..697ac80 100644
--- a/include/hmi-debug.h
+++ b/include/hmi-debug.h
@@ -64,19 +64,19 @@ static void _HMI_LOG(enum LOG_LEVEL level, const char* file, const char* func, c
unsigned int time;
clock_gettime(CLOCK_REALTIME, &tp);
- time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
+ time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
- va_list args;
- va_start(args, log);
- if (log == NULL || vasprintf(&message, log, args) < 0)
+ va_list args;
+ va_start(args, log);
+ if (log == NULL || vasprintf(&message, log, args) < 0)
message = NULL;
fprintf(stderr, "[%10.3f] [%s %s] [%s, %s(), Line:%d] >>> %s \n", time / 1000.0, prefix, ERROR_FLAG[level], file, func, line, message);
va_end(args);
- free(message);
+ free(message);
}
static void _HMI_SEQ_LOG(enum LOG_LEVEL level, const char* file, const char* func, const int line, unsigned seq_num, const char* log, ...){
- const int log_level = (getenv("USE_HMI_DEBUG") == NULL)?LOG_LEVEL_ERROR:atoi(getenv("USE_HMI_DEBUG"));
+ const int log_level = (getenv("USE_HMI_DEBUG") == NULL) ? LOG_LEVEL_ERROR:atoi(getenv("USE_HMI_DEBUG"));
if(log_level < level)
{
return;
diff --git a/src/main.cpp b/src/main.cpp
index b2088d1..0bcded9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -83,10 +83,10 @@ int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events,
// the API context
STN(winman_ping_api_call);
afb_service_call("windowmanager", "ping", json_object_new_object(),
- [](void *c, int st, json_object *j) {
- STN(winman_ping_api_call_return);
- },
- nullptr);
+ [](void *c, int st, json_object *j) {
+ STN(winman_ping_api_call_return);
+ },
+ nullptr);
}
}