VirtualBox

儲存庫 vbox 的更動 101986


忽略:
時間撮記:
2023-11-8 下午04:37:05 (13 月 以前)
作者:
vboxsync
訊息:

libs/xpcom: Convert nsObserverService.cpp from PR_LOG to IPRT's Log, bugref:10545

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsObserverService.cpp

    r59793 r101986  
    3737 * ***** END LICENSE BLOCK ***** */
    3838
    39 #include "prlog.h"
    40 #include "prlock.h"
    4139#include "nsIFactory.h"
    4240#include "nsIServiceManager.h"
     
    4846#include "nsIWeakReference.h"
    4947
     48#include <VBox/log.h>
     49
    5050#define NS_WEAK_OBSERVERS
    5151
    5252
    53 
    54 #if defined(PR_LOGGING)
    55 // Log module for nsObserverService logging...
    56 //
    57 // To enable logging (see prlog.h for full details):
    58 //
    59 //    set NSPR_LOG_MODULES=ObserverService:5
    60 //    set NSPR_LOG_FILE=nspr.log
    61 //
    62 // this enables PR_LOG_DEBUG level information and places all output in
    63 // the file nspr.log
    64 PRLogModuleInfo* observerServiceLog = nsnull;
    65 #endif /* PR_LOGGING */
    6653
    6754////////////////////////////////////////////////////////////////////////////////
     
    8572nsObserverService::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
    8673{
    87 #if defined(PR_LOGGING)
    88     if (!observerServiceLog)
    89         observerServiceLog = PR_NewLogModule("ObserverService");
    90 #endif
    91 
    9274    nsresult rv;
    9375    nsObserverService* os = new nsObserverService();
     
    217199                observer->Observe( aSubject, aTopic, someData );
    218200
    219              PR_LOG(observerServiceLog, PR_LOG_DEBUG, ("Notification - %s\n", aTopic ? aTopic : "undefined"));
    220 
     201             Log(("Notification - %s\n", aTopic ? aTopic : "undefined"));
    221202        }
    222203#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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