(ef_write): Don't call log_last_commands() directly, use oops(). If
it's worth logging commands, then it's worth dumping core.
This commit is contained in:
parent
980c3ca8c6
commit
a127869da2
1 changed files with 1 additions and 5 deletions
|
@ -261,11 +261,7 @@ ef_write(int type, int id, void *from)
|
||||||
to = ep->cache + (id - ep->baseid) * ep->size;
|
to = ep->cache + (id - ep->baseid) * ep->size;
|
||||||
memcpy(to, from, ep->size);
|
memcpy(to, from, ep->size);
|
||||||
}
|
}
|
||||||
if (id > ep->fids) {
|
CANT_HAPPEN(id > ep->fids);
|
||||||
logerror("WARNING ef_write: expanded %s by more than one id",
|
|
||||||
ep->name);
|
|
||||||
log_last_commands();
|
|
||||||
}
|
|
||||||
if (id >= ep->fids) {
|
if (id >= ep->fids) {
|
||||||
if (ep->flags & EFF_MEM) {
|
if (ep->flags & EFF_MEM) {
|
||||||
logerror("file %s went beyond %d items; won't be able toread item w/o restart",
|
logerror("file %s went beyond %d items; won't be able toread item w/o restart",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue