VirtualBox

Changeset 3310 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 27, 2007 10:11:43 AM (17 years ago)
Author:
vboxsync
Message:

don't flood the release log with messages about failed passthrough ATA commands if the device does not exist

File:
1 edited

Legend:

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

    r3211 r3310  
    18561856    {
    18571857        if (s->cErrors++ < MAX_LOG_REL_ERRORS)
    1858             LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d %Vrc\n", s->iLUN, s->aATAPICmd[0], uATAPISenseKey, rc));
     1858        {
     1859            uint8_t u8Cmd = s->aATAPICmd[0];
     1860            do
     1861            {
     1862                /* don't log superflous errors */
     1863                if (    rc == VERR_DEV_IO_ERROR
     1864                    && (   u8Cmd == SCSI_TEST_UNIT_READY
     1865                        || u8Cmd == SCSI_READ_CAPACITY
     1866                        || u8Cmd == SCSI_READ_TOC_PMA_ATIP))
     1867                    break;
     1868                LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d %Vrc\n", s->iLUN, u8Cmd, uATAPISenseKey, rc));
     1869            } while (0);
     1870        }
    18591871        atapiCmdError(s, uATAPISenseKey, 0);
    18601872        /* This is a drive-reported error. atapiCmdError() sets both the error
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