Commit 17e395c2 authored by topjohnwu's avatar topjohnwu

Cleanup and hide debug msg

parent d50c1f39
This diff is collapsed.
This diff is collapsed.
...@@ -125,6 +125,7 @@ void exec_logw(const char* fmt, ...) { ...@@ -125,6 +125,7 @@ void exec_logw(const char* fmt, ...) {
} }
void exec_logd(const char* fmt, ...) { void exec_logd(const char* fmt, ...) {
#ifdef DEBUG
va_list args; va_list args;
char logline[PATH_MAX]; char logline[PATH_MAX];
...@@ -132,6 +133,7 @@ void exec_logd(const char* fmt, ...) { ...@@ -132,6 +133,7 @@ void exec_logd(const char* fmt, ...) {
vsnprintf(logline, PATH_MAX, fmt, args); vsnprintf(logline, PATH_MAX, fmt, args);
va_end(args); va_end(args);
exec_log("d", logline); exec_log("d", logline);
#endif
} }
static int from_init(struct su_initiator *from) { static int from_init(struct su_initiator *from) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment