From: Kern Sibbald Date: Sat, 24 Jul 2010 18:38:17 +0000 (+0200) Subject: Tweak sm_dump output X-Git-Tag: Release-7.0.0~1663 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e6a50b518f2135fffbcea9d3df003d0bf1f9ca0;p=bacula%2Fbacula Tweak sm_dump output --- 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;