X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2Fstatus.c;h=78d447cf71384e4e65610493ef214a407464453e;hb=44c8fb4a8bd89c42465453970929d5fb2a2538de;hp=4461a66f57a190e92e23a5957cda872836095305;hpb=ac13ec973256290f2ae56ad1c03457f8cdd1ed79;p=bacula%2Fbacula diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index 4461a66f57..78d447cf71 100644 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2001-2008 Free Software Foundation Europe e.V. + Copyright (C) 2001-2009 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -143,6 +143,21 @@ static void list_status_header(STATUS_PKT *sp) len = Mmsg(msg, _(" Sizeof: boffset_t=%d size_t=%d debug=%d trace=%d\n"), sizeof(boffset_t), sizeof(size_t), debug_level, get_trace()); sendit(msg.c_str(), len, sp); + if (debug_level > 0 && plugin_list->size() > 0) { + Plugin *plugin; + int len; + pm_strcpy(msg, "Plugin: "); + foreach_alist(plugin, plugin_list) { + len = pm_strcat(msg, plugin->file); + if (len > 80) { + pm_strcat(msg, "\n "); + } else { + pm_strcat(msg, " "); + } + } + len = pm_strcat(msg, "\n"); + sendit(msg.c_str(), len, sp); + } } static void list_running_jobs(STATUS_PKT *sp)