From d0508b22c01c3f804fbc0ebad1fd0730d1b560c7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 24 May 2010 12:08:27 +0200 Subject: [PATCH] Add more debug code for bactrace --- bacula/src/lib/jcr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/lib/jcr.c b/bacula/src/lib/jcr.c index 474948e7c0..7ff53db742 100644 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -1176,11 +1176,11 @@ void dbg_print_jcr(FILE *fp) return; } - fprintf(fp, "Attempt to dump current JCRs\n"); + fprintf(fp, "Attempt to dump current JCRs. njcrs=%d\n", jcrs->size()); for (JCR *jcr = (JCR *)jcrs->first(); jcr ; jcr = (JCR *)jcrs->next(jcr)) { - fprintf(fp, "JCR=%p JobId=%d name=%s JobStatus=%c\n", - jcr, (int)jcr->JobId, jcr->Job, jcr->JobStatus); + fprintf(fp, "threadid=%p JobId=%d JobStatus=%c jcr=%p name=%s\n", + (void *)jcr->my_thread_id, (int)jcr->JobId, jcr->JobStatus, jcr, jcr->Job); fprintf(fp, "\tuse_count=%i\n", jcr->use_count()); fprintf(fp, "\tJobType=%c JobLevel=%c\n", jcr->getJobType(), jcr->getJobLevel()); -- 2.39.5