From: Kern Sibbald Date: Tue, 11 Oct 2011 08:13:16 +0000 (+0200) Subject: Enhance smartalloc abort X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4062187edebd48b54602437ee86573225eedcc9;p=bacula%2Fbacula Enhance smartalloc abort --- diff --git a/bacula/src/lib/smartall.c b/bacula/src/lib/smartall.c index f5f0be853c..70322727b0 100644 --- a/bacula/src/lib/smartall.c +++ b/bacula/src/lib/smartall.c @@ -212,10 +212,8 @@ void sm_free(const char *file, int line, void *fp) if (((unsigned char *)cp)[head->ablen - 1] != ((((intptr_t) cp) & 0xFF) ^ 0xC5)) { V(mutex); - Dmsg4(0, "Overrun buffer: len=%d addr=%p allocated: %s:%d\n", - head->ablen, fp, - get_basename(head->abfname), head->ablineno); - Emsg2(M_ABORT, 0, _("Buffer overrun called from %s:%d\n"), file, line); + Emsg6(M_ABORT, 0, _("Overrun buffer: len=%d addr=%p allocated: %s:%d called from %s:%d\n"), + head->ablen, fp, get_basename(head->abfname), head->ablineno, file, line); } if (sm_buffers > 0) { sm_buffers--;