Changeset 100517 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Jul 11, 2023 2:54:11 PM (17 months ago)
- Location:
- trunk/src/VBox/Devices/USB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBDevice.cpp
r99739 r100517 513 513 LogFlow(("vusbDevStdReqSetAddress: error: %s: invalid device state %d !!!\n", pDev->pUsbIns->pszName, enmState)); 514 514 return false; 515 } 516 517 /* 518 * If wValue has any bits set beyond 0-6, throw them away. 519 */ 520 if ((pSetup->wValue & VUSB_ADDRESS_MASK) != pSetup->wValue) { 521 LogRelMax(10, ("VUSB: %s: Warning: Ignoring high bits of requested address (wLength=0x%X), using only lower 7 bits.\n", 522 pDev->pUsbIns->pszName, pSetup->wValue)); 523 524 pSetup->wValue &= VUSB_ADDRESS_MASK; 515 525 } 516 526 … … 1030 1040 } 1031 1041 1042 /* Paranoia. */ 1043 Assert((u8Address & VUSB_ADDRESS_MASK) == u8Address); 1044 u8Address &= VUSB_ADDRESS_MASK; 1045 1032 1046 /* 1033 1047 * Ok, get on with it. -
trunk/src/VBox/Devices/USB/VUSBInternal.h
r99739 r100517 78 78 #define VUSB_DEFAULT_ADDRESS 0 79 79 #define VUSB_INVALID_ADDRESS UINT8_C(0xff) 80 #define VUSB_ADDRESS_MASK UINT8_C(0x7f) 80 81 /** @} */ 81 82
Note:
See TracChangeset
for help on using the changeset viewer.