From 11dc2ce46828ce6b30708099571bc199a105228d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 12 Dec 2010 17:58:35 +0100 Subject: [PATCH] Print plugin end records in bls --- bacula/src/stored/bls.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bacula/src/stored/bls.c b/bacula/src/stored/bls.c index 275f681f76..760808fed1 100644 --- a/bacula/src/stored/bls.c +++ b/bacula/src/stored/bls.c @@ -404,9 +404,12 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec) num_files++; } } else if (rec->Stream == STREAM_PLUGIN_NAME) { - if (strncmp("0 0", rec->data, 3) != 0) { - Pmsg1(000, "Plugin data: %s\n", rec->data); - } + char data[100]; + int len = MIN(rec->data_len+1, sizeof(data)); + bstrncpy(data, rec->data, len); + Pmsg1(000, "Plugin data: %s\n", data); + } else if (rec->Stream == STREAM_RESTORE_OBJECT) { + Pmsg0(000, "Restore Object record\n"); } return true; -- 2.39.5