From 721d7c171a90ebb0ba32f0d04f71b7ec1cbd354b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 25 Dec 2012 14:48:28 +0100 Subject: [PATCH] Make spool size max message more explicit --- bacula/src/stored/spool.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 395bd48c38..42868f9e2d 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -475,13 +475,18 @@ bool write_block_to_spool_file(DCR *dcr) } V(mutex); if (despool) { - char ec1[30], ec2[30], ec3[30], ec4[30]; - Jmsg(dcr->jcr, M_INFO, 0, _("User specified spool size reached: " - "JobSpoolSize=%s MaxJobSpool=%s DevSpoolSize=%s MaxDevSpool=%s\n"), - edit_uint64_with_commas(dcr->job_spool_size, ec1), - edit_uint64_with_commas(dcr->max_job_spool_size, ec2), - edit_uint64_with_commas(dcr->dev->spool_size, ec3), - edit_uint64_with_commas(dcr->dev->max_spool_size, ec4)); + char ec1[30], ec2[30]; + if (dcr->max_job_spool_size > 0) { + Jmsg(dcr->jcr, M_INFO, 0, _("User specified Job spool size reached: " + "JobSpoolSize=%s MaxJobSpoolSize=%s\n"), + edit_uint64_with_commas(dcr->job_spool_size, ec1), + edit_uint64_with_commas(dcr->max_job_spool_size, ec2)); + } else { + Jmsg(dcr->jcr, M_INFO, 0, _("User specified Device spool size reached: " + "DevSpoolSize=%s MaxDevSpoolSize=%s\n"), + edit_uint64_with_commas(dcr->dev->spool_size, ec1), + edit_uint64_with_commas(dcr->dev->max_spool_size, ec2)); + } if (!despool_data(dcr, false)) { Pmsg0(000, _("Bad return from despool in write_block.\n")); -- 2.39.5