summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-04-13 15:29:29 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-04-13 15:29:29 +0530
commit1e74fd73adfcdb8dc034f1ddaf915802bc18ba1c (patch)
tree3e352d1bc7db6b12469dda1bd9e6b736c6dd28a6 /src/examples
parentfedc8939cc6f4bf0de7ea5188717b6050475f69a (diff)
example: eina log - set eina log levels in examples
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/eina/eina_log_01.c2
-rw-r--r--src/examples/eina/eina_log_02.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/eina/eina_log_01.c b/src/examples/eina/eina_log_01.c
index 7a20ca90ac..2c6432ab8f 100644
--- a/src/examples/eina/eina_log_01.c
+++ b/src/examples/eina/eina_log_01.c
@@ -19,6 +19,8 @@ int main(void)
19 return EXIT_FAILURE; 19 return EXIT_FAILURE;
20 } 20 }
21 21
22 eina_log_level_set(EINA_LOG_LEVEL_WARN);
23
22 test_warn(); 24 test_warn();
23 25
24 eina_shutdown(); 26 eina_shutdown();
diff --git a/src/examples/eina/eina_log_02.c b/src/examples/eina/eina_log_02.c
index a056729b2d..e2d5a9f893 100644
--- a/src/examples/eina/eina_log_02.c
+++ b/src/examples/eina/eina_log_02.c
@@ -29,6 +29,8 @@ int main(void)
29 return EXIT_FAILURE; 29 return EXIT_FAILURE;
30 } 30 }
31 31
32 eina_log_level_set(EINA_LOG_LEVEL_DBG);
33
32 test(-1); 34 test(-1);
33 test(0); 35 test(0);
34 36