VirtualBox

Changeset 2607 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 13, 2007 12:35:17 PM (18 years ago)
Author:
vboxsync
Message:

pass vendor id and product id along as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/darwin/iokit.cpp

    r2605 r2607  
    408408                AssertBreak(darwinDictGetU16(PropsRef, CFSTR(kUSBProductID),            &pCur->idProduct),);
    409409                AssertBreak(darwinDictGetU16(PropsRef, CFSTR(kUSBDeviceReleaseNumber),  &pCur->bcdDevice),);
    410                 uint32_t u32LocationID;
    411                 AssertBreak(darwinDictGetU32(PropsRef, CFSTR(kUSBDevicePropertyLocationID), &u32LocationID),);
    412                 uint64_t u64SessionID;
    413                 AssertBreak(darwinDictGetU64(PropsRef, CFSTR("sessionID"), &u64SessionID),);
     410                uint32_t u32LocationId;
     411                AssertBreak(darwinDictGetU32(PropsRef, CFSTR(kUSBDevicePropertyLocationID), &u32LocationId),);
     412                uint64_t u64SessionId;
     413                AssertBreak(darwinDictGetU64(PropsRef, CFSTR("sessionID"), &u64SessionId),);
    414414                char szAddress[64];
    415                 RTStrPrintf(szAddress, sizeof(szAddress), "s=0x%016RX32;l=0x%08RX32", u64SessionID, u32LocationID);
    416 
     415                RTStrPrintf(szAddress, sizeof(szAddress), "p=0x%04RX16;v=0x%04RX16;s=0x%016RX64;l=0x%08RX32",
     416                            pCur->idProduct, pCur->idVendor, u64SessionId, u32LocationId);
    417417                pCur->pszAddress = RTStrDup(szAddress);
    418418                AssertBreak(pCur->pszAddress,);
Note: See TracChangeset for help on using the changeset viewer.

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