Changeset 63511 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB
- Timestamp:
- Aug 15, 2016 11:11:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/darwin/VBoxUSB.cpp
r62490 r63511 314 314 static kern_return_t VBoxUSBStart(struct kmod_info *pKModInfo, void *pvData) 315 315 { 316 RT_NOREF(pKModInfo, pvData); 316 317 int rc; 317 318 Log(("VBoxUSBStart\n")); … … 367 368 static kern_return_t VBoxUSBStop(struct kmod_info *pKModInfo, void *pvData) 368 369 { 369 int rc;370 RT_NOREF(pKModInfo, pvData); 370 371 Log(("VBoxUSBStop: g_cInstances=%d\n", g_cInstances)); 371 372 … … 377 378 VBoxUSBFilterTerm(); 378 379 379 rc = RTSemFastMutexDestroy(g_Mtx);380 int rc = RTSemFastMutexDestroy(g_Mtx); 380 381 AssertRC(rc); 381 382 g_Mtx = NIL_RTSEMFASTMUTEX; … … 391 392 392 393 393 394 #ifdef LOG_ENABLED 394 395 /** 395 396 * Gets the name of a IOKit message. … … 400 401 DECLINLINE(const char *) DbgGetIOKitMessageName(UInt32 enmMsg) 401 402 { 402 #ifdef DEBUG403 403 switch (enmMsg) 404 404 { 405 # define MY_CASE(enm) case enm: return #enm; break405 # define MY_CASE(enm) case enm: return #enm; break 406 406 MY_CASE(kIOMessageServiceIsTerminated); 407 407 MY_CASE(kIOMessageServiceIsSuspended); … … 439 439 MY_CASE(kIOUSBMessageExpressCardCantWake); 440 440 // MY_CASE(kIOUSBMessageCompositeDriverReconfigured); 441 #undef MY_CASE 442 } 443 #endif /* DEBUG */ 441 # undef MY_CASE 442 } 444 443 return "unknown"; 445 444 } 445 #endif /* LOG_ENABLED */ 446 446 447 447 … … 465 465 uint32_t cInstances = ASMAtomicIncU32(&g_cInstances); 466 466 Log(("VBoxUSB::init([%p], %p) new g_cInstances=%d\n", this, pDictionary, cInstances)); 467 RT_NOREF_PV(cInstances); 468 467 469 if (IOService::init(pDictionary)) 468 470 { … … 605 607 Log(("VBoxUSBClient::initWithTask([%p], %p(->%p:{.pid=%d}, %p, %#x) -> true; new g_cInstances=%d\n", 606 608 this, OwningTask, pProc, pProc ? proc_pid(pProc) : -1, pvSecurityId, u32Type, cInstances)); 609 RT_NOREF_PV(cInstances); 607 610 return true; 608 611 } … … 977 980 uint32_t cInstances = ASMAtomicIncU32(&g_cInstances); 978 981 Log(("VBoxUSBDevice::init([%p], %p) new g_cInstances=%d\n", this, pDictionary, cInstances)); 982 RT_NOREF_PV(cInstances); 979 983 980 984 m_pDevice = NULL; … … 1339 1343 { 1340 1344 Log(("VBoxUSBDevice::message([%p], %#x {%s}, %p {%s}, %p) - pid=%d\n", 1341 1345 this, enmMsg, DbgGetIOKitMessageName(enmMsg), pProvider, pProvider->getName(), pvArg, RTProcSelf())); 1342 1346 1343 1347 IOReturn irc; … … 1472 1476 1473 1477 Log(("VBoxUSBDevice::message([%p], %#x {%s}, %p {%s}, %p) -> %#x\n", 1474 1478 this, enmMsg, DbgGetIOKitMessageName(enmMsg), pProvider, pProvider->getName(), pvArg, irc)); 1475 1479 return irc; 1476 1480 } … … 1562 1566 We'll also get a kIIOServiceRequestingClose message() for that... */ 1563 1567 Log(("VBoxUSBDevice::MyInterestHandler: kIOMessageServiceIsAttemptingOpen - pvRefCon=%p pProvider=%p pvMsgArg=%p cbMsgArg=%d\n", 1564 1568 pvRefCon, pProvider, pvMsgArg, cbMsgArg)); 1565 1569 break; 1566 1570 1567 1571 case kIOMessageServiceWasClosed: 1568 1572 Log(("VBoxUSBDevice::MyInterestHandler: kIOMessageServiceWasClosed - pvRefCon=%p pProvider=%p pvMsgArg=%p cbMsgArg=%d\n", 1569 1573 pvRefCon, pProvider, pvMsgArg, cbMsgArg)); 1570 1574 break; 1571 1575 1572 1576 case kIOMessageServiceIsTerminated: 1573 1577 Log(("VBoxUSBDevice::MyInterestHandler: kIOMessageServiceIsTerminated - pvRefCon=%p pProvider=%p pvMsgArg=%p cbMsgArg=%d\n", 1574 1578 pvRefCon, pProvider, pvMsgArg, cbMsgArg)); 1575 1579 break; 1576 1580 1577 1581 case kIOUSBMessagePortHasBeenReset: 1578 1582 Log(("VBoxUSBDevice::MyInterestHandler: kIOUSBMessagePortHasBeenReset - pvRefCon=%p pProvider=%p pvMsgArg=%p cbMsgArg=%d\n", 1579 1583 pvRefCon, pProvider, pvMsgArg, cbMsgArg)); 1580 1584 break; 1581 1585 1582 1586 default: 1583 1587 Log(("VBoxUSBDevice::MyInterestHandler: %#x (%s) - pvRefCon=%p pProvider=%p pvMsgArg=%p cbMsgArg=%d\n", 1584 1588 enmMsgType, DbgGetIOKitMessageName(enmMsgType), pvRefCon, pProvider, pvMsgArg, cbMsgArg)); 1585 1589 break; 1586 1590 } … … 1617 1621 uint32_t cInstances = ASMAtomicIncU32(&g_cInstances); 1618 1622 Log(("VBoxUSBInterface::init([%p], %p) new g_cInstances=%d\n", this, pDictionary, cInstances)); 1623 RT_NOREF_PV(cInstances); 1619 1624 1620 1625 m_pInterface = NULL; … … 1781 1786 { 1782 1787 Log(("VBoxUSBInterface::message([%p], %#x {%s}, %p {%s}, %p)\n", 1783 1788 this, enmMsg, DbgGetIOKitMessageName(enmMsg), pProvider, pProvider->getName(), pvArg)); 1784 1789 1785 1790 IOReturn irc; … … 1865 1870 1866 1871 Log(("VBoxUSBInterface::message([%p], %#x {%s}, %p {%s}, %p) -> %#x\n", 1867 1872 this, enmMsg, DbgGetIOKitMessageName(enmMsg), pProvider, pProvider->getName(), pvArg, irc)); 1868 1873 return irc; 1869 1874 }
Note:
See TracChangeset
for help on using the changeset viewer.