VirtualBox

Ignore:
Timestamp:
Sep 26, 2008 11:59:46 AM (16 years ago)
Author:
vboxsync
Message:

log the event status codes of passthrough CD/DVD-ROM drives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r12727 r12765  
    605605# error "Unsupported platform."
    606606#endif
     607
     608    if (pbCmd[0] == SCSI_GET_EVENT_STATUS_NOTIFICATION)
     609    {
     610        uint8_t *pbBuf = (uint8_t*)pvBuf;
     611        Log2(("Event Status Notification class=%#02x supported classes=%#02x\n", pbBuf[2], pbBuf[3]));
     612        if (RT_BE2H_U16(*(uint16_t*)pbBuf) >= 6)
     613            Log2(("  event %#02x %#02x %#02x %#02x\n", pbBuf[4], pbBuf[5], pbBuf[6], pbBuf[7]));
     614    }
     615
    607616    LogFlow(("%s: rc=%Rrc\n", __FUNCTION__, rc));
    608617    return rc;
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