]> git.sur5r.net Git - bacula/bacula/commitdiff
Enhance smartalloc abort
authorKern Sibbald <kern@sibbald.com>
Tue, 11 Oct 2011 08:13:16 +0000 (10:13 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:02 +0000 (14:50 +0200)
bacula/src/lib/smartall.c

index f5f0be853c8bd17a88dab913af4fa38ec591e626..70322727b030578cb21fb58dae4c0b36f4b54bde 100644 (file)
@@ -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--;