eina_magic_fail now only ERRs on NULL instead of CRI, making debugging much easier

SVN revision: 81666
This commit is contained in:
Mike Blumenkrantz 2012-12-24 09:16:56 +00:00
parent d7b55afca2
commit f5a98df8de
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-12-24 Mike Blumenkrantz
* eina_magic_fail() now throws error messages on NULL pointers instead of critical
2012-12-19 Gustavo Sverzut Barbieri (k-s)
* Fixed Evas RGBA_Image->flags.loaded for copied images.

1
NEWS
View File

@ -62,6 +62,7 @@ Improvements:
* Speedup Eina Rbtree Iterator by recycling memory instead of
repeatedly calling malloc/free.
* Display more information with eet -l -v.
* eina_magic_fail() now throws error messages on NULL pointers instead of critical
Fixes:
* Fix PPC (big endian) image codec bug.

View File

@ -274,7 +274,7 @@ eina_magic_fail(void *d,
{
eina_error_set(EINA_ERROR_MAGIC_FAILED);
if (!d)
eina_log_print(EINA_LOG_DOMAIN_GLOBAL, EINA_LOG_LEVEL_CRITICAL,
eina_log_print(EINA_LOG_DOMAIN_GLOBAL, EINA_LOG_LEVEL_ERR,
file, fnc, line,
"*** Eina Magic Check Failed !!!\n"
" Input handle pointer is NULL !\n"