Branch: Tag:

2012-07-06

2012-07-06 14:50:16 by Martin Stjernholm <mast@lysator.liu.se>

Do not include the % in PRINT_ALLOC_COUNT_TYPE.

To allow specifying precision etc.

4226:   void dump_gc_info(void)   {    fprintf(stderr,"Current number of things : %d\n",num_objects); -  fprintf(stderr,"Allocations since last gc : "PRINT_ALLOC_COUNT_TYPE"\n", +  fprintf(stderr,"Allocations since last gc : %"PRINT_ALLOC_COUNT_TYPE"\n",    num_allocs); -  fprintf(stderr,"Threshold for next gc : "PRINT_ALLOC_COUNT_TYPE"\n", +  fprintf(stderr,"Threshold for next gc : %"PRINT_ALLOC_COUNT_TYPE"\n",    alloc_threshold);    fprintf(stderr,"Projected current garbage : %f\n",    objects_freed * (double) num_allocs / (double) alloc_threshold);