summaryrefslogtreecommitdiff
path: root/legacy/edje/src/bin/edje_cc_mem.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-22 23:56:11 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-22 23:56:11 +0000
commita85cc11943936bdfe43dfb4de282c3542fa1b238 (patch)
tree6b9d728560053abf3d7d28bb8ae7c7e74e9a9391 /legacy/edje/src/bin/edje_cc_mem.c
parent51c00c6526821e97442204e8a18e46fcc4b73fd9 (diff)
better error reporting for edje_cc.
Instead of saying lots of possibilities that confuse users, check the correct one and possibly give a hint. SVN revision: 44669
Diffstat (limited to 'legacy/edje/src/bin/edje_cc_mem.c')
-rw-r--r--legacy/edje/src/bin/edje_cc_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/edje/src/bin/edje_cc_mem.c b/legacy/edje/src/bin/edje_cc_mem.c
index 082d570abb..13e7c52be3 100644
--- a/legacy/edje/src/bin/edje_cc_mem.c
+++ b/legacy/edje/src/bin/edje_cc_mem.c
@@ -18,7 +18,7 @@ mem_alloc(size_t size)
18 18
19 mem = calloc(1, size); 19 mem = calloc(1, size);
20 if (mem) return mem; 20 if (mem) return mem;
21 ERR("%s: Error. %s:%i memory allocation of %i bytes failed. %s", 21 ERR("%s: Error. %s:%i memory allocation of %zi bytes failed. %s",
22 progname, file_in, line, size, strerror(errno)); 22 progname, file_in, line, size, strerror(errno));
23 exit(-1); 23 exit(-1);
24 return NULL; 24 return NULL;
@@ -31,7 +31,7 @@ mem_strdup(const char *s)
31 31
32 str = strdup(s); 32 str = strdup(s);
33 if (str) return str; 33 if (str) return str;
34 ERR("%s: Error. %s:%i memory allocation of %i bytes failed. %s. string being duplicated: \"%s\"", 34 ERR("%s: Error. %s:%i memory allocation of %zi bytes failed. %s. string being duplicated: \"%s\"",
35 progname, file_in, line, strlen(s) + 1, strerror(errno), s); 35 progname, file_in, line, strlen(s) + 1, strerror(errno), s);
36 exit(-1); 36 exit(-1);
37 return NULL; 37 return NULL;