From 41189e408e1261b2ec2b5cc4d90df3ec6ce4dbb7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 15 Apr 2012 10:18:06 +0000 Subject: [PATCH] Eobj: Minor changes in eina log registration. SVN revision: 70195 --- legacy/eobj/lib/eobj.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legacy/eobj/lib/eobj.c b/legacy/eobj/lib/eobj.c index 9722684f82..5ebda9b926 100644 --- a/legacy/eobj/lib/eobj.c +++ b/legacy/eobj/lib/eobj.c @@ -982,6 +982,7 @@ eobj_generic_data_del(Eobj *obj, const char *key) EAPI Eina_Bool eobj_init(void) { + const char *log_dom = "eobj"; if (_eobj_init_count++ > 0) return EINA_TRUE; @@ -989,10 +990,10 @@ eobj_init(void) _eobj_classes = NULL; _eobj_classes_last_id = 0; - _eobj_log_dom = eina_log_domain_register("eobj", EINA_COLOR_LIGHTBLUE); + _eobj_log_dom = eina_log_domain_register(log_dom, EINA_COLOR_LIGHTBLUE); if (_eobj_log_dom < 0) { - EINA_LOG_ERR("Could not register log domain: eobj"); + EINA_LOG_ERR("Could not register log domain: %s", log_dom); return EINA_FALSE; }