From 65b6f38bd927e9f161d60494f18488ea2735e41d Mon Sep 17 00:00:00 2001 From: raster Date: Wed, 29 Oct 2008 23:41:55 +0000 Subject: [PATCH] error macro. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@37323 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_list.c | 4 ++-- src/lib/eina_mempool.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/eina_list.c b/src/lib/eina_list.c index f14b17d..3186187 100644 --- a/src/lib/eina_list.c +++ b/src/lib/eina_list.c @@ -434,14 +434,14 @@ eina_list_init(void) sizeof (Eina_List), 320); if (!_eina_list_mp) { - fprintf(stderr, "ERROR: Mempool for list cannot be allocated in list init.\n"); + EINA_ERROR_PERR("ERROR: Mempool for list cannot be allocated in list init.\n"); abort(); } _eina_list_accounting_mp = eina_mempool_new(choice, "list_accounting", NULL, sizeof (Eina_List_Accounting), 80); if (!_eina_list_accounting_mp) { - fprintf(stderr, "ERROR: Mempool for list accounting cannot be allocated in list init.\n"); + EINA_ERROR_PERR("ERROR: Mempool for list accounting cannot be allocated in list init.\n"); abort(); } diff --git a/src/lib/eina_mempool.c b/src/lib/eina_mempool.c index 3dcf4a3..c8faf2e 100644 --- a/src/lib/eina_mempool.c +++ b/src/lib/eina_mempool.c @@ -126,7 +126,7 @@ eina_mempool_init(void) _modules = eina_module_list_get(PACKAGE_LIB_DIR "/eina/mp/", 0, NULL, NULL); if (!_modules) { - fprintf(stderr, "ERROR: no mempool modules able to be loaded.\n"); + EINA_ERROR_PERR("ERROR: no mempool modules able to be loaded.\n"); abort(); } eina_module_list_load(_modules); -- 2.7.4