Changeset 46435 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd
- Timestamp:
- Jun 7, 2013 11:37:03 AM (12 years ago)
- Location:
- trunk/src/libs/xpcom18a4/ipc/ipcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp
r34653 r46435 1310 1310 1311 1311 #ifdef IPC_LOGGING 1312 if (IPC_LOG_ENABLED()) 1312 1313 { 1313 1314 char *targetStr = target.ToString(); -
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
r45813 r46435 1581 1581 1582 1582 nsrefcnt count = AddRef(); 1583 mRefCntLevels.Push((void *) count);1583 mRefCntLevels.Push((void *)(uintptr_t) count); 1584 1584 return count; 1585 1585 } … … 2239 2239 { 2240 2240 #ifdef IPC_LOGGING 2241 const char *name = NULL; 2242 mIInfo->GetNameShared(&name); 2243 LOG(("{%p} DConnectStub::<dtor>(): peer=%d instance=0x%Lx {%s}\n", 2244 this, mPeerID, mInstance, name)); 2241 if (IPC_LOG_ENABLED()) 2242 { 2243 const char *name = NULL; 2244 mIInfo->GetNameShared(&name); 2245 LOG(("{%p} DConnectStub::<dtor>(): peer=%d instance=0x%Lx {%s}\n", 2246 this, mPeerID, mInstance, name)); 2247 } 2245 2248 #endif 2246 2249 … … 2280 2283 2281 2284 #ifdef IPC_LOGGING 2282 const char *name; 2283 mIInfo->GetNameShared(&name); 2284 LOG(("{%p} DConnectStub::Release(): peer=%d instance=0x%Lx {%s}, new count=%d\n", 2285 this, mPeerID, mInstance, name, count)); 2285 if (IPC_LOG_ENABLED()) 2286 { 2287 const char *name; 2288 mIInfo->GetNameShared(&name); 2289 LOG(("{%p} DConnectStub::Release(): peer=%d instance=0x%Lx {%s}, new count=%d\n", 2290 this, mPeerID, mInstance, name, count)); 2291 } 2286 2292 #endif 2287 2293 … … 2438 2444 2439 2445 #ifdef IPC_LOGGING 2446 if (IPC_LOG_ENABLED()) 2440 2447 { 2441 2448 const char *name; … … 2524 2531 2525 2532 #ifdef IPC_LOGGING 2526 const char *name; 2527 nsCOMPtr<nsIInterfaceInfo> iinfo; 2528 GetInterfaceInfo(getter_AddRefs(iinfo)); 2529 iinfo->GetNameShared(&name); 2530 LOG((" instance=0x%Lx {%s}\n", mInstance, name)); 2531 LOG((" name=%s\n", aInfo->GetName())); 2532 LOG((" param-count=%u\n", (PRUint32) paramCount)); 2533 if (IPC_LOG_ENABLED()) 2534 { 2535 const char *name; 2536 nsCOMPtr<nsIInterfaceInfo> iinfo; 2537 GetInterfaceInfo(getter_AddRefs(iinfo)); 2538 iinfo->GetNameShared(&name); 2539 LOG((" instance=0x%Lx {%s}\n", mInstance, name)); 2540 LOG((" name=%s\n", aInfo->GetName())); 2541 LOG((" param-count=%u\n", (PRUint32) paramCount)); 2542 } 2533 2543 #endif 2534 2544 … … 3013 3023 3014 3024 #ifdef IPC_LOGGING 3015 const char *name; 3016 aData->InterfaceInfo()->GetNameShared(&name); 3017 LOG(("ipcDConnectService: WARNING: deleting unreleased " 3018 "instance=%p iface=%p {%s}\n", aData, aData->RealInstance(), name)); 3025 if (IPC_LOG_ENABLED()) 3026 { 3027 const char *name; 3028 aData->InterfaceInfo()->GetNameShared(&name); 3029 LOG(("ipcDConnectService: WARNING: deleting unreleased " 3030 "instance=%p iface=%p {%s}\n", aData, aData->RealInstance(), name)); 3031 } 3019 3032 #endif 3020 3033 … … 3258 3271 { 3259 3272 #ifdef IPC_LOGGING 3260 const char *name; 3261 wrapper->InterfaceInfo()->GetNameShared(&name); 3262 LOG(("ipcDConnectService::StoreInstance(): instance=%p iface=%p {%s}\n", 3263 wrapper, wrapper->RealInstance(), name)); 3273 if (IPC_LOG_ENABLED()) 3274 { 3275 const char *name; 3276 wrapper->InterfaceInfo()->GetNameShared(&name); 3277 LOG(("ipcDConnectService::StoreInstance(): instance=%p iface=%p {%s}\n", 3278 wrapper, wrapper->RealInstance(), name)); 3279 } 3264 3280 #endif 3265 3281 … … 3283 3299 3284 3300 #ifdef IPC_LOGGING 3285 const char *name; 3286 wrapper->InterfaceInfo()->GetNameShared(&name); 3287 LOG(("ipcDConnectService::DeleteInstance(): instance=%p iface=%p {%s}\n", 3288 wrapper, wrapper->RealInstance(), name)); 3301 if (IPC_LOG_ENABLED()) 3302 { 3303 const char *name; 3304 wrapper->InterfaceInfo()->GetNameShared(&name); 3305 LOG(("ipcDConnectService::DeleteInstance(): instance=%p iface=%p {%s}\n", 3306 wrapper, wrapper->RealInstance(), name)); 3307 } 3289 3308 #endif 3290 3309 … … 3325 3344 { 3326 3345 #ifdef IPC_LOGGING 3327 const char *name; 3328 nsCOMPtr<nsIInterfaceInfo> iinfo; 3329 stub->GetInterfaceInfo(getter_AddRefs(iinfo)); 3330 iinfo->GetNameShared(&name); 3331 LOG(("ipcDConnectService::StoreStub(): stub=%p instance=0x%Lx {%s}\n", 3332 stub, stub->Instance(), name)); 3346 if (IPC_LOG_ENABLED()) 3347 { 3348 const char *name; 3349 nsCOMPtr<nsIInterfaceInfo> iinfo; 3350 stub->GetInterfaceInfo(getter_AddRefs(iinfo)); 3351 iinfo->GetNameShared(&name); 3352 LOG(("ipcDConnectService::StoreStub(): stub=%p instance=0x%Lx {%s}\n", 3353 stub, stub->Instance(), name)); 3354 } 3333 3355 #endif 3334 3356 … … 3341 3363 { 3342 3364 #ifdef IPC_LOGGING 3343 const char *name; 3344 nsCOMPtr<nsIInterfaceInfo> iinfo; 3345 stub->GetInterfaceInfo(getter_AddRefs(iinfo)); 3346 iinfo->GetNameShared(&name); 3347 LOG(("ipcDConnectService::DeleteStub(): stub=%p instance=0x%Lx {%s}\n", 3348 stub, stub->Instance(), name)); 3365 if (IPC_LOG_ENABLED()) 3366 { 3367 const char *name; 3368 nsCOMPtr<nsIInterfaceInfo> iinfo; 3369 stub->GetInterfaceInfo(getter_AddRefs(iinfo)); 3370 iinfo->GetNameShared(&name); 3371 LOG(("ipcDConnectService::DeleteStub(): stub=%p instance=0x%Lx {%s}\n", 3372 stub, stub->Instance(), name)); 3373 } 3349 3374 #endif 3350 3375
Note:
See TracChangeset
for help on using the changeset viewer.