VirtualBox

Ignore:
Timestamp:
May 19, 2010 2:29:49 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: IPRT_DEBUG_SEMS cleanup - use macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c

    r29648 r29661  
    142142    int     rc       = VINF_SUCCESS;
    143143    long    lTimeout = cMillies == RT_INDEFINITE_WAIT ? MAX_SCHEDULE_TIMEOUT : msecs_to_jiffies(cMillies);
    144 #ifdef IPRT_DEBUG_SEMS
    145     snprintf(current->comm, sizeof(current->comm), "e%lx", IPRT_DEBUG_SEMS_ADDRESS(pThis));
    146 #endif
     144    IPRT_DEBUG_SEMS_STATE(pThis, 'e');
    147145    for (;;)
    148146    {
     
    182180
    183181    finish_wait(&pThis->Head, &Wait);
    184 #ifdef IPRT_DEBUG_SEMS
    185     snprintf(current->comm, sizeof(current->comm), "e%lx:%d", IPRT_DEBUG_SEMS_ADDRESS(pThis), rc);
    186 #endif
     182    IPRT_DEBUG_SEMS_STATE_RC(pThis, 'e', rc);
    187183    return rc;
    188184}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette