Changeset 7d07970 in rtems


Ignore:
Timestamp:
Aug 11, 1998, 2:20:26 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
09470e0
Parents:
339737b
Message:

Added SONIC_DEBUG_DESCRIPTORS and changed debug level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c

    r339737b r7d07970  
    5454#define SONIC_DEBUG_FRAGMENTS        0x0008
    5555#define SONIC_DEBUG_CAM              0x0008
    56 
    57 #define SONIC_DEBUG      (SONIC_DEBUG_MEMORY|SONIC_DEBUG_CAM)
     56#define SONIC_DEBUG_DESCRIPTORS      0x0010
     57
     58#define SONIC_DEBUG \
     59    (SONIC_DEBUG_MEMORY|SONIC_DEBUG_DESCRIPTORS)
     60
    5861/* SONIC_DEBUG_ALL */
    5962
     
    424427      && ((status = dp->tdaTail->status) != 0)) {
    425428
    426 printf( "retire TDA %p (0x%04x)\n", dp->tdaTail, status );
     429#if (SONIC_DEBUG & SONIC_DEBUG_DESCRIPTORS)
     430    printf( "retire TDA %p (0x%04x)\n", dp->tdaTail, status );
     431#endif
     432
    427433    /*
    428434     * Check for errors which stop the transmitter.
     
    486492     */
    487493    dp->tdaTail = dp->tdaTail->next;
    488 printf( "next TDA %p\n", dp->tdaTail );
     494#if (SONIC_DEBUG & SONIC_DEBUG_DESCRIPTORS)
     495    printf( "next TDA %p\n", dp->tdaTail );
     496#endif
    489497  }
    490498}
Note: See TracChangeset for help on using the changeset viewer.