if (!eina_init())
return -1;
- _edje_cc_log_dom = eina_log_domain_register("EDJE_CC", EDJE_DEFAULT_LOG_COLOR);
- if(_edje_cc_log_dom<0)
+ _edje_cc_log_dom = eina_log_domain_register
+ ("edje_cc", EDJE_CC_DEFAULT_LOG_COLOR);
+ if (_edje_cc_log_dom < 0)
{
EINA_LOG_ERR("Enable to create a log domain.");
exit(-1);
if (!eina_init())
return -1;
- _edje_cc_log_dom = eina_log_domain_register("EDJE_CONVERT", EDJE_DEFAULT_LOG_COLOR);
- if(_edje_cc_log_dom<0)
+ _edje_cc_log_dom = eina_log_domain_register
+ ("edje_convert", EDJE_CC_DEFAULT_LOG_COLOR);
+ if (_edje_cc_log_dom < 0)
{
EINA_LOG_ERR("Enable to create a log domain.");
exit(-1);
setlocale(LC_NUMERIC, "C");
if (!eina_init())
exit(-1);
- _edje_cc_log_dom = eina_log_domain_register("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR);
- if(_edje_cc_log_dom < 0)
+ _edje_cc_log_dom = eina_log_domain_register
+ ("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR);
+ if (_edje_cc_log_dom < 0)
{
- EINA_LOG_ERR("Edje_decc: Impossible to create a log domain for edje_decc");
+ EINA_LOG_ERR("Impossible to create a log domain.");
eina_shutdown();
exit(-1);
}
faxes = "X";
else if ((flags & FLAG_Y))
faxes = "Y";
- ERR("Circular dependency when calculating part \"%s\"\n"
- "Already calculating %s [%02x] axes\n"
+ ERR("Circular dependency when calculating part \"%s\". "
+ "Already calculating %s [%02x] axes. "
"Need to calculate %s [%02x] axes",
ep->part->name,
axes, ep->calculating,
edf = (Edje_File*) _edje_file_get();
if (!edf->warning)
- ERR("EDJE ERROR:\n"
- "\n"
- "Naughty Programmer - spank spank!\n"
- "\n"
- "This program as probably called edje_shutdown() with active Edje objects\n"
- "still around.\n This can cause problems as both Evas and Edje retain\n"
- "references to the objects. you should shut down all canvases and objects\n"
- "before calling edje_shutdown().\n"
- "The following errors are the edje object files and parts that are still\n"
- "hanging around, with their reference counts");
+ CRITICAL("This program as probably called edje_shutdown() with "
+ "active Edje objects still around. "
+ "This can cause problems as both Evas and Edje retain "
+ "references to the objects. "
+ "You should shut down all canvases and objects "
+ "before calling edje_shutdown(). "
+ "The following errors are the edje object files and "
+ "parts that are still hanging around, with their reference "
+ "counts");
edf->warning = 1;
- ERR("EEK: EDJE FILE: \"%s\" ref(%i) PART: \"%s\" ref(%i) ",
+ ERR("file: '%s', references: %i, part: '%s', references: %i",
edf->path, edf->references,
ce->ref->part, ce->ref->references);
GET_ED_OR_RETURN(EINA_FALSE);
- INF("ADD FONT: %s\n", path);
+ INF("ADD FONT: %s", path);
if (!path) return EINA_FALSE;
if (stat(path, &st) || !S_ISREG(st.st_mode)) return EINA_FALSE;
GET_ED_OR_RETURN(EINA_FALSE);
- INF("DEL FONT: %s\n", alias);
+ INF("DEL FONT: %s", alias);
if (!alias) return EINA_FALSE;
if (!ed->file) return EINA_FALSE;
_edje_generate_source(obj);
return;
- INF("\n****** CHECKIN' INTERNAL STRUCTS STATUS *********");
+ INF("****** CHECKIN' INTERNAL STRUCTS STATUS *********");
- INF("*** Edje\n");
- INF(" path: '%s'", ed->path);
- INF(" group: '%s'", ed->group);
- INF(" parent: '%s'", ed->parent);
+ INF("path: '%s', group: '%s', parent: '%s'",
+ ed->path, ed->group, ed->parent);
- INF("*** Parts [table:%d list:%d]", ed->table_parts_size,
+ INF("Parts [table:%d list:%d]", ed->table_parts_size,
ed->collection->parts_count);
for (i = 0; i < ed->collection->parts_count; ++i)
{
p = ed->collection->parts[i];
rp = ed->table_parts[p->id % ed->table_parts_size];
- printf(" [%d]%s ", p->id, p->name);
+ printf("part[%d]: '%s' ", p->id, p->name);
if (p == rp->part)
- printf(" OK!\n");
+ printf("OK!\n");
else
- WRN(" WRONG (table[%id]->name = '%s')", p->id, rp->part->name);
+ printf("WRONG (table[%d]->name = '%s')\n", p->id, rp->part->name);
}
- INF("*** Programs [table:%d list:%d,%d,%d,%d,%d]", ed->table_programs_size,
+ INF("Programs [table:%d list:%d,%d,%d,%d,%d]", ed->table_programs_size,
ed->collection->programs.fnmatch_count,
ed->collection->programs.strcmp_count,
ed->collection->programs.strncmp_count,
for(j = 0; j < ed->table_programs_size; ++j)
{
epr = ed->table_programs[i % ed->table_programs_size];
- printf(" [%d]%s\n", epr->id, epr->name);
+ printf("program[%d]: '%s'\n", epr->id, epr->name);
}
- printf("\n");
-
- INF("****************** END ************************\n");
+ INF("****************** END ************************");
}
ret = embryo_program_run(ed->collection->script, fn);
if (ret == EMBRYO_PROGRAM_FAIL)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "SIGNAL/SRC: %s / %s\n"
- "ERROR: %s",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "SIGNAL: '%s', "
+ "SOURCE: '%s', "
+ "ERROR: '%s'",
ed->collection->part,
ed->file->path,
fname,
}
else if (ret == EMBRYO_PROGRAM_TOOLONG)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "SIGNAL/SRC: %s / %s\n"
- "ERROR: Script exceeded maximum allowed cycle count of %i",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "SIGNAL: '%s', "
+ "SOURCE: '%s', "
+ "ERROR: 'Script exceeded maximum allowed cycle count of %i'",
ed->collection->part,
ed->file->path,
fname,
rp->object = evas_object_table_add(ed->evas);
break;
case EDJE_PART_TYPE_GRADIENT:
- ERR("SPANK ! SPANK ! SPANK !\nYOU ARE USING GRADIENT IN PART %s FROM GROUP %s INSIDE FILE %s !!\n THEY ARE NOW REMOVED !",
+ ERR("SPANK ! SPANK ! SPANK ! YOU ARE USING GRADIENT IN PART %s FROM GROUP %s INSIDE FILE %s !! THEY ARE NOW REMOVED !",
ep->name, group, file);
default:
ERR("wrong part type %i!", ep->type);
static int
_edje_lua_custom_panic(__UNUSED__ lua_State *L)
{
- printf("PANIC\n");
+ CRITICAL("PANIC");
longjmp(_edje_lua_panic_jmp, 1);
return 1; /* longjmp() never returns, but this keep gcc happy */
}
/* ANSI requires that realloc(NULL, size) == malloc(size) */
ptr2 = realloc(ptr, nsize);
if (ptr2) return ptr2;
- ERR("Edje Lua cannot re-allocate %zu bytes\n", nsize);
+ ERR("Edje Lua cannot re-allocate %zu bytes", nsize);
return ptr2;
}
return --_edje_init_count;
}
- _edje_default_log_dom = eina_log_domain_register("Edje", EDJE_DEFAULT_LOG_COLOR);
+ _edje_default_log_dom = eina_log_domain_register
+ ("edje", EDJE_DEFAULT_LOG_COLOR);
if (_edje_default_log_dom < 0)
{
EINA_LOG_ERR("Edje Can not create a general log domain.");
ret = embryo_program_run(em->edje->collection->script, fn);
if (ret == EMBRYO_PROGRAM_FAIL)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "ERROR: %s",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "ERROR: '%s'",
em->edje->collection->part,
em->edje->file->path,
"message",
}
else if (ret == EMBRYO_PROGRAM_TOOLONG)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "ERROR: Script exceeded maximum allowed cycle count of %i",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "ERROR: 'Script exceeded maximum allowed cycle count of %i'",
em->edje->collection->part,
em->edje->file->path,
"message",
ret = embryo_program_run(ed->collection->script, fn);
if (ret == EMBRYO_PROGRAM_FAIL)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "ERROR: %s",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "ERROR: '%s'",
ed->collection->part,
ed->file->path,
fname,
}
else if (ret == EMBRYO_PROGRAM_TOOLONG)
{
- ERR("ERROR with embryo script.\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ENTRY POINT: %s\n"
- "ERROR: Script exceeded maximum allowed cycle count of %i",
+ ERR("ERROR with embryo script. "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ENTRY POINT: '%s', "
+ "ERROR: 'Script exceeded maximum allowed cycle count of %i'",
ed->collection->part,
ed->file->path,
fname,
}
if ((ed->w > 4000) || (ed->h > 4000))
{
- ERR("file %s, group %s has a non-fixed part. add fixed: 1 1; ???",
- ed->path, ed->group);
- if (pep)
- ERR(" Problem part is: %s", pep->part->name);
- ERR(" Will recalc min size not allowing broken parts to affect the result.");
+ if (pep)
+ ERR("file %s, group %s has a non-fixed part '%s'. Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.",
+ ed->path, ed->group, pep->part->name);
+ else
+ ERR("file %s, group %s overflowed 4000x4000 with minimum size of %dx%d. Continuing discarding faulty parts.",
+ ed->path, ed->group, ed->w, ed->h);
+
if (reset_maxwh)
{
reset_maxwh = 0;
ret = embryo_program_run(ed->collection->script, fn);
if (ret == EMBRYO_PROGRAM_FAIL)
{
- ERR("ERROR with embryo script (timer callback).\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ERROR: %s",
+ ERR("ERROR with embryo script (timer callback). "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ERROR: '%s'",
ed->collection->part,
ed->file->path,
embryo_error_string_get(embryo_program_error_get(ed->collection->script)));
}
else if (ret == EMBRYO_PROGRAM_TOOLONG)
{
- ERR("ERROR with embryo script (timer callback).\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ERROR: Script exceeded maximum allowed cycle count of %i",
+ ERR("ERROR with embryo script (timer callback). "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ERROR: 'Script exceeded maximum allowed cycle count of %i'",
ed->collection->part,
ed->file->path,
embryo_program_max_cycle_run_get(ed->collection->script));
ret = embryo_program_run(ed->collection->script, fn);
if (ret == EMBRYO_PROGRAM_FAIL)
{
- ERR("ERROR with embryo script (anim callback).\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ERROR: %s",
+ ERR("ERROR with embryo script (anim callback). "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ERROR: '%s'",
ed->collection->part,
ed->file->path,
embryo_error_string_get(embryo_program_error_get(ed->collection->script)));
}
else if (ret == EMBRYO_PROGRAM_TOOLONG)
{
- ERR("ERROR with embryo script (anim callback).\n"
- "OBJECT NAME: %s\n"
- "OBJECT FILE: %s\n"
- "ERROR: Script exceeded maximum allowed cycle count of %i",
+ ERR("ERROR with embryo script (anim callback). "
+ "OBJECT NAME: '%s', "
+ "OBJECT FILE: '%s', "
+ "ERROR: 'Script exceeded maximum allowed cycle count of %i'",
ed->collection->part,
ed->file->path,
embryo_program_max_cycle_run_get(ed->collection->script));