From a127869da2540a51027d32ee19fdbfdf7a57d296 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 28 May 2005 15:52:29 +0000 Subject: [PATCH] (ef_write): Don't call log_last_commands() directly, use oops(). If it's worth logging commands, then it's worth dumping core. --- src/lib/common/file.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/common/file.c b/src/lib/common/file.c index 6d86102d..55358358 100644 --- a/src/lib/common/file.c +++ b/src/lib/common/file.c @@ -261,11 +261,7 @@ ef_write(int type, int id, void *from) to = ep->cache + (id - ep->baseid) * ep->size; memcpy(to, from, ep->size); } - if (id > ep->fids) { - logerror("WARNING ef_write: expanded %s by more than one id", - ep->name); - log_last_commands(); - } + CANT_HAPPEN(id > ep->fids); if (id >= ep->fids) { if (ep->flags & EFF_MEM) { logerror("file %s went beyond %d items; won't be able toread item w/o restart",