From 86003ea5b02e26dc070148169f51163890a1e50d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 11 Oct 2011 10:13:16 +0200 Subject: [PATCH] Enhance smartalloc abort --- bacula/src/lib/smartall.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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--; -- 2.39.5