]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1968 print the ScratchPool name instead of just 'Scratch'
authorEric Bollengier <eric@baculasystems.com>
Thu, 21 Jul 2016 14:13:19 +0000 (16:13 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 20 Sep 2016 15:04:43 +0000 (17:04 +0200)
bacula/src/dird/next_vol.c

index 522e3234c1f508b0289f83430575fe142be8805a..f895e5c418b6b1bd95a7a865c1ac54b08f7e2d85 100644 (file)
@@ -479,8 +479,9 @@ bool get_scratch_volume(JCR *jcr, bool InChanger, MEDIA_DBR *mr,
             goto bail_out;
          }
 
-         Jmsg(jcr, M_INFO, 0, _("Using Volume \"%s\" from 'Scratch' pool.\n"),
-              mr->VolumeName);
+         Jmsg(jcr, M_INFO, 0, _("Using Volume \"%s\" from '%s' %spool.\n"),
+              mr->VolumeName, spr.Name,
+              ((strcmp(spr.Name, "Scratch") == 0) ? "" : "Scratch "));
 
          ok = true;
       }