Changeset 51492 in vbox for trunk/src/VBox
- Timestamp:
- Jun 2, 2014 4:15:42 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94103
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r51488 r51492 78 78 #endif 79 79 80 /* Temporary debugging. */ 81 #define VBOX_PROC_SELFNAME_LEN (20) 82 #define VBOX_RETRIEVE_CUR_PROC_NAME(_name) char _name[VBOX_PROC_SELFNAME_LEN]; \ 83 proc_selfname(pszProcName, VBOX_PROC_SELFNAME_LEN) 84 80 85 81 86 /******************************************************************************* … … 128 133 virtual IOService *probe(IOService *pProvider, SInt32 *pi32Score); 129 134 virtual bool terminate(IOOptionBits fOptions); 135 virtual void taggedRetain(const void *pTag=0) const; 130 136 }; 131 137 … … 156 162 virtual bool finalize(IOOptionBits fOptions); 157 163 virtual void stop(IOService *pProvider); 164 virtual void taggedRetain(const void *pTag=0) const; 158 165 }; 159 166 … … 1374 1381 return false; 1375 1382 1383 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1384 1376 1385 if (u32Type != SUP_DARWIN_IOSERVICE_COOKIE) 1377 1386 { 1378 Log (("org_virtualbox_SupDrvClient::initWithTask: Bade cookie %#x\n", u32Type));1387 LogRel(("org_virtualbox_SupDrvClient::initWithTask: Bade cookie %#x (%s)\n", u32Type, pszProcName)); 1379 1388 return false; 1380 1389 } 1390 else 1391 LogRel(("org_virtualbox_SupDrvClient::initWithTask: Expected cookie %#x (%s)\n", u32Type, pszProcName)); 1381 1392 1382 1393 if (IOUserClient::initWithTask(OwningTask, pvSecurityId , u32Type)) … … 1388 1399 } 1389 1400 return false; 1401 } 1402 1403 void org_virtualbox_SupDrv::taggedRetain(const void *pTag) const 1404 { 1405 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1406 LogRel(("org_virtualbox_SupDrv::taggedRetain([%p], pTag=[%p]) (1) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1407 IOService::taggedRetain(pTag); 1408 LogRel(("org_virtualbox_SupDrv::taggedRetain([%p], pTag=[%p]) (2) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1409 } 1410 void org_virtualbox_SupDrvClient::taggedRetain(const void *pTag) const 1411 { 1412 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1413 LogRel(("org_virtualbox_SupDrvClient::taggedRetain([%p], pTag=[%p]) (1) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1414 IOUserClient::taggedRetain(pTag); 1415 LogRel(("org_virtualbox_SupDrvClient::taggedRetain([%p], pTag=[%p]) (2) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1390 1416 } 1391 1417
Note:
See TracChangeset
for help on using the changeset viewer.