From ea611743fd342909810184cbf15b154a376187fb Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 12 Nov 2012 14:59:00 +0100 Subject: [PATCH] Tweak debug message in ua_label --- bacula/src/dird/ua_label.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 7dd1ecf2be..aa008f031d 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -147,10 +147,12 @@ static bool get_user_slot_list(UAContext *ua, char *slot_list, int num_slots) slot_list[i] = 1; } } - Dmsg0(100, "Slots turned on:\n"); - for (i=1; i <= num_slots; i++) { - if (slot_list[i]) { - Dmsg1(100, "%d\n", i); + if (debug_level >= 100) { + Dmsg0(100, "Slots turned on:\n"); + for (i=1; i <= num_slots; i++) { + if (slot_list[i]) { + Dmsg1(100, "%d\n", i); + } } } return true; -- 2.39.5