Ignore:
Timestamp:
Jul 29, 2015, 5:52:18 PM (9 years ago)
Author:
guerin
Message:

malloc: use giet_tty_printf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/malloc.c

    r678 r680  
    5555    unsigned int iter;
    5656
    57     giet_shr_printf("\nUser Heap[%d][%d] base = %x / size = %x\n", x , y ,
     57    giet_tty_printf("\nUser Heap[%d][%d] base = %x / size = %x\n", x , y ,
    5858                   heap[x][y].heap_base, heap[x][y].heap_size );
    59     for ( id = 6 ; id < 28 ; id++ )
     59    for ( id = 0 ; id < 32 ; id++ )
    6060    {
    6161        next = heap[x][y].free[id];
    62         giet_shr_printf(" - free[%d] = " , id );
     62        giet_tty_printf(" - free[%d] = " , id );
    6363        iter = 0;
    6464        while ( next != 0 )
    6565        {
    66             giet_shr_printf("%x | ", next );
     66            giet_tty_printf("%x | ", next );
    6767            next = (*(unsigned int*)next);
    6868            iter++;
    6969        }
    70         giet_shr_printf("0\n");
     70        giet_tty_printf("0\n");
    7171    }
    7272}  // end display_free_array()
     
    9393
    9494#if GIET_DEBUG_USER_MALLOC
    95 giet_shr_printf("\n[DEBUG USER_MALLOC] Starting Heap[%d][%d] initialisation /"
     95giet_tty_printf("\n[DEBUG USER_MALLOC] Starting Heap[%d][%d] initialisation /"
    9696                " base = %x / size = %x\n", x, y, heap_base, heap_size );
    9797#endif
     
    156156
    157157#if GIET_DEBUG_USER_MALLOC
    158 giet_shr_printf("\n[DEBUG USER_MALLOC] Completing Heap[%d][%d] initialisation\n", x, y );
     158giet_tty_printf("\n[DEBUG USER_MALLOC] Completing Heap[%d][%d] initialisation\n", x, y );
    159159display_free_array(x,y);
    160160#endif
     
    226226
    227227#if GIET_DEBUG_USER_MALLOC
    228 giet_shr_printf("\n[DEBUG USER_MALLOC] request for Heap[%d][%d] / size = %x\n",
     228giet_tty_printf("\n[DEBUG USER_MALLOC] request for Heap[%d][%d] / size = %x\n",
    229229                 x, y, size );
    230230#endif
     
    289289 
    290290#if GIET_DEBUG_USER_MALLOC
    291 giet_shr_printf("\n[DEBUG USER_MALLOC] allocated block from heap[%d][%d] : "
     291giet_tty_printf("\n[DEBUG USER_MALLOC] allocated block from heap[%d][%d] : "
    292292                "base = %x / size = %x\n", x , y , base , size );
    293293display_free_array(x,y);
     
    384384
    385385#if GIET_DEBUG_USER_MALLOC
    386 giet_shr_printf("\n[DEBUG USER_MALLOC] Free for vaddr = %x / x = %d / y = %d\n",
     386giet_tty_printf("\n[DEBUG USER_MALLOC] Free for vaddr = %x / x = %d / y = %d\n",
    387387                 (unsigned int)ptr, x, y );
    388388#endif
Note: See TracChangeset for help on using the changeset viewer.