From: Eric Bollengier Date: Mon, 12 Nov 2012 13:59:00 +0000 (+0100) Subject: Tweak debug message in ua_label X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e2331b9f52ac399224f19dde81819ddbf429d20;p=bacula%2Fbacula Tweak debug message in ua_label --- 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;