From 1e6a50b518f2135fffbcea9d3df003d0bf1f9ca0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 24 Jul 2010 20:38:17 +0200 Subject: [PATCH] Tweak sm_dump output --- bacula/src/lib/smartall.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bacula/src/lib/smartall.c b/bacula/src/lib/smartall.c index f49d11e461..6bd139ce51 100644 --- a/bacula/src/lib/smartall.c +++ b/bacula/src/lib/smartall.c @@ -394,16 +394,13 @@ void sm_dump(bool bufdump, bool in_use) } if (ap->abfname != NULL) { + char errmsg[500]; uint32_t memsize = ap->ablen - (HEAD_SIZE + 1); - char errmsg[1000]; char *cp = ((char *)ap) + HEAD_SIZE; - bsnprintf(errmsg, sizeof(errmsg), - _("%s buffer: %s %6u bytes buf=%p allocated at %s:%d\n"), + Pmsg0(0, "%s buffer: %s %d bytes at %p from %s:%d\n", in_use?"In use":"Orphaned", - my_name, memsize, cp, ap->abfname, ap->ablineno - ); - Pmsg1(0, "%s", errmsg); + my_name, memsize, cp, ap->abfname, ap->ablineno); if (bufdump) { char buf[20]; unsigned llen = 0; -- 2.39.5