src/cats/sql.c
void bdb_debug_print(JCR *jcr, FILE *fp) 
{ 
   BDB *mdb = jcr->db; 
 
   if (!mdb) { 
      return; 
   } 
 
   fprintf(fp, "BDB=%p db_name=%s db_user=%s connected=%s\n", 
           mdb, NPRTB(mdb->get_db_name()), NPRTB(mdb->get_db_user()), mdb->is_connected() ? "true" : "false"); 
   fprintf(fp, "\tcmd=\"%s\" changes=%i\n", NPRTB(mdb->cmd), mdb->changes); 
   mdb->print_lock_info(fp); 
}
/* 
 * !!! WARNING !!! Use this function only when bacula is stopped. 
 * ie, after a fatal signal and before exiting the program 
 * Print information about a BDB object. 
 */
WARNING !!. Use this function only when bacula is stopped.
ie, after a fatal signal and before exiting the program
Print information about a BDB object.
WARNING !! . Use this function only when bacula is stopped . ie after a fatal signal and before exiting the program Print information about a BDB object .
void bdb_debug_print(JCR *jcr, FILE *fp) 
{ 
   BDB *mdb = jcr->db; 
   if (!mdb) { 
      return; 
   } 
   fprintf(fp, "BDB=%p db_name=%s db_user=%s connected=%s\n", 
           mdb, NPRTB(mdb->get_db_name()), NPRTB(mdb->get_db_user()), mdb->is_connected() ? "true" : "false"); 
   fprintf(fp, "\tcmd=\"%s\" changes=%i\n", NPRTB(mdb->cmd), mdb->changes); 
   mdb->print_lock_info(fp); 
}
void bdb_debug_print ( JCR * jcr , FILE * fp ) { BDB * mdb = jcr -> db ; if ( ! mdb ) { return ; } fprintf ( fp , " \n " , mdb , NPRTB ( mdb -> get_db_name ( ) ) , NPRTB ( mdb -> get_db_user ( ) ) , mdb -> is_connected ( ) ? " " : " " ) ; fprintf ( fp , " \t \" \" \n " , NPRTB ( mdb -> cmd ) , mdb -> changes ) ; mdb -> print_lock_info ( fp ) ; }
!!!
!!!