]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak debug level in askdir.c
authorEric Bollengier <eric@baculasystems.com>
Wed, 12 Jul 2023 15:03:40 +0000 (17:03 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/stored/askdir.c

index 47ee2c4a72d44d45bfc6f3379d12376e726ea32b..310c2a7b79c8ea271bdf4f05192e84cb2433ace3 100644 (file)
@@ -676,14 +676,14 @@ bool dir_create_jobmedia_record(DCR *dcr, bool zero)
       return true;
    }
    if (!zero && dcr->VolLastIndex == 0) {
-      Pmsg7(0/*dbglvl*/, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
+      Pmsg7(dbglvl, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
          dcr->VolumeName, dcr->WroteVol, dcr->VolMediaId,
          dcr->VolFirstIndex, dcr->VolLastIndex, dcr->StartAddr, dcr->EndAddr);
       return true;                    /* nothing written to the Volume */
    }
    /* Throw out records where the start address is bigger than the end */
    if (!zero && dcr->StartAddr > dcr->EndAddr) {
-      Pmsg7(0/*dbglvl*/, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
+      Pmsg7(dbglvl, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
          dcr->VolumeName, dcr->WroteVol, dcr->VolMediaId,
          dcr->VolFirstIndex, dcr->VolLastIndex, dcr->StartAddr, dcr->EndAddr);
       return true;
@@ -697,7 +697,7 @@ bool dir_create_jobmedia_record(DCR *dcr, bool zero)
    /* Throw out records where FI is zero -- i.e. nothing done */
    if (!zero && dcr->VolFirstIndex == 0 &&
         (dcr->StartAddr != 0 || dcr->EndAddr != 0)) {
-      Pmsg7(0/*dbglvl*/, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
+      Pmsg7(dbglvl, "Discard: JobMedia Vol=%s wrote=%d MediaId=%lld FI=%lu LI=%lu StartAddr=%lld EndAddr=%lld\n",
          dcr->VolumeName, dcr->WroteVol, dcr->VolMediaId,
          dcr->VolFirstIndex, dcr->VolLastIndex, dcr->StartAddr, dcr->EndAddr);
       return true;