VirtualBox

Changeset 101992 in vbox


Ignore:
Timestamp:
Nov 8, 2023 5:37:38 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Convert nsEventQueueService.cpp from PR_LOG to IPRT's logging infrastructure, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/threads/nsEventQueueService.cpp

    r1 r101992  
    5757#include "nsPIEventQueueChain.h"
    5858
    59 #include "prlog.h"
    60 
    61 #if defined(PR_LOGGING) || defined(DEBUG_danm)
    62 extern PRLogModuleInfo* gEventQueueLog;
    63 extern PRUint32 gEventQueueLogCount;
    64 #endif
     59#include <VBox/log.h>
    6560
    6661static NS_DEFINE_CID(kEventQueueCID, NS_EVENTQUEUE_CID);
     
    6964{
    7065  mEventQMonitor = PR_NewMonitor();
    71 #if defined(PR_LOGGING) && defined(DEBUG_danm)
    72   if (!gEventQueueLog)
    73     gEventQueueLog = PR_NewLogModule("nseventqueue");
    74 #endif
    7566}
    7667
     
    301292  *aNewQueue = newQueue;
    302293
    303 #if defined(PR_LOGGING) && defined(DEBUG_danm)
     294#ifdef LOG_ENABLED
    304295  PLEventQueue *equeue;
    305296  (*aNewQueue)->GetPLEventQueue(&equeue);
    306   PR_LOG(gEventQueueLog, PR_LOG_DEBUG,
    307          ("EventQueue: Service push queue [queue=%lx]",(long)equeue));
    308   ++gEventQueueLogCount;
     297  Log(("EventQueue: Service push queue [queue=%lx]",(long)equeue));
    309298#endif
    310299
     
    337326    return NS_ERROR_FAILURE;
    338327
    339 #if defined(PR_LOGGING) && defined(DEBUG_danm)
     328#ifdef LOG_ENABLED
    340329  PLEventQueue *equeue;
    341330  aQueue->GetPLEventQueue(&equeue);
    342   PR_LOG(gEventQueueLog, PR_LOG_DEBUG,
    343          ("EventQueue: Service pop queue [queue=%lx]",(long)equeue));
    344   ++gEventQueueLogCount;
     331  Log(("EventQueue: Service pop queue [queue=%lx]",(long)equeue));
    345332#endif
    346333  aQueue->StopAcceptingEvents();
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