projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor code to create memory windows
[emu8051.git]
/
src
/
memory.c
diff --git
a/src/memory.c
b/src/memory.c
index
fec85c1
..
f8753d3
100644
(file)
--- a/
src/memory.c
+++ b/
src/memory.c
@@
-60,14
+60,13
@@
memory_init(void)
m = &mem_infos[k];
if (m->size > m->max_size) {
m = &mem_infos[k];
if (m->size > m->max_size) {
- log_fail_no_exit("Memory size invalid (max = %d)",
- m->max_size);
+ log_err("Memory size invalid (max = %d)", m->max_size);
exit(1);
}
m->buf = malloc(m->size);
if (m->buf == NULL) {
exit(1);
}
m->buf = malloc(m->size);
if (m->buf == NULL) {
- log_
fail_no_exit
("%s", strerror(errno));
+ log_
err
("%s", strerror(errno));
exit(1);
}
}
exit(1);
}
}