From 7bd602575cced17a401ae2e0791e0e55a35cd148 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 23 Nov 2011 14:25:19 +0100 Subject: [PATCH] Fix compile problems with stored/status.c --- bacula/src/stored/status.c | 6 ------ bacula/src/version.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index 7c29ed6d06..505681d9fc 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -369,12 +369,6 @@ static void send_device_status(DEVICE *dev, STATUS_PKT *sp) dev->num_reserved(), dev->blocked()); sendit(msg, len, sp); - locked = dev->lock_holder; - if (locked) { - len = Mmsg(msg, _("Waiting for device locked by: %s\n"), locked); - sendit(msg, len, sp); - } - len = Mmsg(msg, _("Device parameters:\n")); sendit(msg, len, sp); diff --git a/bacula/src/version.h b/bacula/src/version.h index d9f7e0a47a..5e77e56240 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -56,6 +56,13 @@ /* If this is set stdout will not be closed on startup */ /* #define DEVELOPER 1 */ +/* adjust DEVELOPER_MODE for status command */ +#ifdef DEVELOPER +# define DEVELOPER_MODE 1 +#else +# define DEVELOPER_MODE 0 +#endif + /* * SMCHECK does orphaned buffer checking (memory leaks) * it can always be turned on, but has some minor performance -- 2.39.5