Ignore:
Timestamp:
Dec 12, 2014, 5:06:18 PM (10 years ago)
Author:
alain
Message:

Cosmetic: Improving debug.

File:
1 edited

Legend:

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

    r461 r468  
    1818{
    1919
    20 #if GIET_DEBUG_MWMR
     20#if GIET_DEBUG_USER_MWMR
    2121unsigned int    x;
    2222unsigned int    y;
     
    4545{
    4646
    47 #if GIET_DEBUG_MWMR
     47#if GIET_DEBUG_USER_MWMR
    4848unsigned int    x;
    4949unsigned int    y;
     
    8484        mwmr->ptw = ptw;
    8585
    86 #if GIET_DEBUG_MWMR
     86#if GIET_DEBUG_USER_MWMR
    8787giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",
    8888                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    109109        mwmr->ptw = ptw;
    110110
    111 #if GIET_DEBUG_MWMR
     111#if GIET_DEBUG_USER_MWMR
    112112giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",
    113113                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    127127{
    128128
    129 #if GIET_DEBUG_MWMR
     129#if GIET_DEBUG_USER_MWMR
    130130unsigned int    x;
    131131unsigned int    y;
     
    164164        mwmr->ptr = ptr;
    165165
    166 #if GIET_DEBUG_MWMR
     166#if GIET_DEBUG_USER_MWMR
    167167giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",
    168168                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    175175    {
    176176
    177 #if GIET_DEBUG_MWMR
     177#if GIET_DEBUG_USER_MWMR
    178178giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read nothing in fifo %x : sts = %d\n",
    179179                x, y, lpid, (unsigned int)mwmr, mwmr->sts );
     
    195195        mwmr->ptr = ptr;
    196196
    197 #if GIET_DEBUG_MWMR
     197#if GIET_DEBUG_USER_MWMR
    198198giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",
    199199                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    213213{
    214214
    215 #if GIET_DEBUG_MWMR
     215#if GIET_DEBUG_USER_MWMR
    216216unsigned int    x;
    217217unsigned int    y;
     
    254254            mwmr->sts = sts + nwords;
    255255
    256 #if GIET_DEBUG_MWMR
     256#if GIET_DEBUG_USER_MWMR
    257257giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",
    258258                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    280280            items = items - (nwords/width);
    281281
    282 #if GIET_DEBUG_MWMR
     282#if GIET_DEBUG_USER_MWMR
    283283giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",
    284284                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    300300{
    301301
    302 #if GIET_DEBUG_MWMR
     302#if GIET_DEBUG_USER_MWMR
    303303unsigned int    x;
    304304unsigned int    y;
     
    339339            mwmr->ptr = ptr;
    340340
    341 #if GIET_DEBUG_MWMR
     341#if GIET_DEBUG_USER_MWMR
    342342giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",
    343343                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
     
    365365            items = items - (nwords/width);
    366366
    367 #if GIET_DEBUG_MWMR
     367#if GIET_DEBUG_USER_MWMR
    368368giet_shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",
    369369                x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts );
Note: See TracChangeset for help on using the changeset viewer.