VirtualBox

Changeset 36348 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Mar 22, 2011 3:27:01 PM (14 years ago)
Author:
vboxsync
Message:

Main/USB/Linux: also show state in testcase device enumeration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp

    r34341 r36348  
    6464    while (pDevice)
    6565    {
    66         RTPrintf("  Manufacturer: %s, product: %s, serial number string: %s\n",
     66        const char *pcszState =
     67              pDevice->enmState == USBDEVICESTATE_UNSUPPORTED   ? "UNSUPPORTED"
     68            : pDevice->enmState == USBDEVICESTATE_USED_BY_HOST  ? "USED_BY_HOST"
     69            : pDevice->enmState == USBDEVICESTATE_USED_BY_HOST_CAPTURABLE ? "USED_BY_HOST_CAPTURABLE"
     70            : pDevice->enmState == USBDEVICESTATE_UNUSED        ? "UNUSED"
     71            : pDevice->enmState == USBDEVICESTATE_HELD_BY_PROXY ? "held by proxy"
     72            : pDevice->enmState == USBDEVICESTATE_USED_BY_GUEST ? "used by guest"
     73            :                                                     "invalid";
     74        RTPrintf("  Manufacturer: %s, product: %s, serial number string: %s, state: %s\n",
    6775                    pDevice->pszManufacturer, pDevice->pszProduct,
    68                     pDevice->pszSerialNumber);
     76                    pDevice->pszSerialNumber, pcszState);
    6977        RTPrintf("    Device address: %s\n", pDevice->pszAddress);
    7078        pDevice = pDevice->pNext;
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