summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-09-21 16:08:51 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-09-21 16:08:51 +0000
commitc259d8adddf7b72641c42adb9713d7d9a29a123c (patch)
tree9c0a55308034d1aaddbe856696a71ece75ddb9cf /legacy/evas/src/lib/main.c
parentdb6bee8c04fa464916d63a553e392f36ac0a659c (diff)
* evas: Use eina_log.
Patch from Matthieu. SVN revision: 42598
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/main.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index 798bb1685c..f95da6f136 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -101,8 +101,7 @@ evas_debug_error(void)
101 _evas_debug_init = 1; 101 _evas_debug_init = 1;
102 } 102 }
103 if (_evas_debug_show) 103 if (_evas_debug_show)
104 fprintf(stderr, 104 DEBUG("*** EVAS ERROR: Evas Magic Check Failed!!!");
105 "*** EVAS ERROR: Evas Magic Check Failed!!!\n");
106} 105}
107 106
108void 107void
@@ -115,8 +114,7 @@ evas_debug_input_null(void)
115 _evas_debug_init = 1; 114 _evas_debug_init = 1;
116 } 115 }
117 if (_evas_debug_show) 116 if (_evas_debug_show)
118 fprintf(stderr, 117 DEBUG("Input object pointer is NULL!");
119 " Input object pointer is NULL!\n");
120 if (_evas_debug_abort) abort(); 118 if (_evas_debug_abort) abort();
121} 119}
122 120
@@ -130,8 +128,7 @@ evas_debug_magic_null(void)
130 _evas_debug_init = 1; 128 _evas_debug_init = 1;
131 } 129 }
132 if (_evas_debug_show) 130 if (_evas_debug_show)
133 fprintf(stderr, 131 DEBUG("Input object is zero'ed out (maybe a freed object or zero-filled RAM)!");
134 " Input object is zero'ed out (maybe a freed object or zero-filled RAM)!\n");
135 if (_evas_debug_abort) abort(); 132 if (_evas_debug_abort) abort();
136} 133}
137 134
@@ -145,12 +142,11 @@ evas_debug_magic_wrong(DATA32 expected, DATA32 supplied)
145 _evas_debug_init = 1; 142 _evas_debug_init = 1;
146 } 143 }
147 if (_evas_debug_show) 144 if (_evas_debug_show)
148 fprintf(stderr, 145 DEBUG(" Input object is wrong type\n"
149 " Input object is wrong type\n" 146 " Expected: %08x - %s\n"
150 " Expected: %08x - %s\n" 147 " Supplied: %08x - %s",
151 " Supplied: %08x - %s\n", 148 expected, evas_debug_magic_string_get(expected),
152 expected, evas_debug_magic_string_get(expected), 149 supplied, evas_debug_magic_string_get(supplied));
153 supplied, evas_debug_magic_string_get(supplied));
154 if (_evas_debug_abort) abort(); 150 if (_evas_debug_abort) abort();
155} 151}
156 152
@@ -164,9 +160,8 @@ evas_debug_generic(const char *str)
164 _evas_debug_init = 1; 160 _evas_debug_init = 1;
165 } 161 }
166 if (_evas_debug_show) 162 if (_evas_debug_show)
167 fprintf(stderr, 163 DEBUG("*** EVAS ERROR:\n"
168 "*** EVAS ERROR:\n" 164 "%s", (char *)str);
169 "%s", (char *)str);
170 if (_evas_debug_abort) abort(); 165 if (_evas_debug_abort) abort();
171} 166}
172 167