lib/dgr.c
/** Prints a list of variables that DGR is aware of. */
Prints a list of variables that DGR is aware of.
Prints a list of variables that DGR is aware of .
void dgr_print_list(void)
{
	if(dgr_disabled)
	{
		msg(MSG_DEBUG, "DGR is disabled or not initialized correctly.\n");
		return;
	}
	msg(MSG_DEBUG, "Current DGR list (index, size, buffer, name):\n");
	for(int i=0; i<dgr_list_size; i++)
	{
		dgr_record *r = &(dgr_list[i]);
		msg(MSG_DEBUG, "%3d %5d %p %s\n", i, r->size, r->buffer, r->name);
	}
	if(dgr_list_size == 0)
		msg(MSG_DEBUG, "[ the list is empty ]\n");
}
void dgr_print_list ( void ) { if ( dgr_disabled ) { msg ( MSG_DEBUG , " \n " ) ; return ; } msg ( MSG_DEBUG , " \n " ) ; for ( int i = 0 ; i < dgr_list_size ; i ++ ) { dgr_record * r = & ( dgr_list [ i ] ) ; msg ( MSG_DEBUG , " \n " , i , r -> size , r -> buffer , r -> name ) ; } if ( dgr_list_size == 0 ) msg ( MSG_DEBUG , " \n " ) ; }
Prints a list of variables that DGR is aware of.
Prints a list of variables that DGR is aware of .