summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_main_loop_linux.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-08-07 15:45:35 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:13 +0900
commit28a5c6f587992b5cf5506129c86cdde95253d525 (patch)
tree7a656ce46a7b437038ee04086dbb9893f676667a /src/bin/evas/evas_cserve2_main_loop_linux.c
parent9d731364c1268fd824d4dc697a21fe6357908c37 (diff)
evas/cserve2: Add compile-time log level flag for cserve2
DBG and INF messages pollute the logs and performance reports from valgrind, let's disable them at build-time for better benchmarking. Fix other compilation warnings and clean code a bit
Diffstat (limited to 'src/bin/evas/evas_cserve2_main_loop_linux.c')
-rw-r--r--src/bin/evas/evas_cserve2_main_loop_linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_main_loop_linux.c b/src/bin/evas/evas_cserve2_main_loop_linux.c
index c29f9425de..18b4662e79 100644
--- a/src/bin/evas/evas_cserve2_main_loop_linux.c
+++ b/src/bin/evas/evas_cserve2_main_loop_linux.c
@@ -90,8 +90,9 @@ _signal_handle_child(struct signalfd_siginfo *sinfo EINA_UNUSED)
90} 90}
91 91
92static void 92static void
93_signal_handle_exit(struct signalfd_siginfo *sinfo) 93_signal_handle_exit(struct signalfd_siginfo *sinfo EINA_UNUSED)
94{ 94{
95#if CSERVE2_LOG_LEVEL >= 4
95 const char *name; 96 const char *name;
96 97
97 switch (sinfo->ssi_signo) 98 switch (sinfo->ssi_signo)
@@ -103,6 +104,7 @@ _signal_handle_exit(struct signalfd_siginfo *sinfo)
103 } 104 }
104 105
105 DBG("Received %s. Honoring request.", name); 106 DBG("Received %s. Honoring request.", name);
107#endif
106 terminate = EINA_TRUE; 108 terminate = EINA_TRUE;
107} 109}
108 110