VirtualBox

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


Ignore:
Timestamp:
Jan 23, 2014 11:22:18 AM (11 years ago)
Author:
vboxsync
Message:

BIOS: Let the compiler merge info/debug strings better in SCSI module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/scsi.c

    r50091 r50176  
    185185    device_id = VBOX_GET_SCSI_DEVICE(bios_dsk->drqp.dev_id);
    186186    if (device_id > BX_MAX_SCSI_DEVICES)
    187         BX_PANIC("scsi_read_sectors: device_id out of range %d\n", device_id);
     187        BX_PANIC("%s: device_id out of range %d\n", __func__, device_id);
    188188
    189189    count    = bios_dsk->drqp.nsect;
     
    234234    device_id = VBOX_GET_SCSI_DEVICE(bios_dsk->drqp.dev_id);
    235235    if (device_id > BX_MAX_SCSI_DEVICES)
    236         BX_PANIC("scsi_write_sectors: device_id out of range %d\n", device_id);
     236        BX_PANIC("%s: device_id out of range %d\n", __func__, device_id);
    237237
    238238    count    = bios_dsk->drqp.nsect;
     
    600600    {
    601601        /* Detected - Enumerate attached devices. */
    602         DBG_SCSI("scsi_init: BusLogic SCSI adapter detected\n");
     602        DBG_SCSI("%s: BusLogic SCSI adapter detected\n", __func__);
    603603        outb(BUSLOGIC_BIOS_IO_PORT+VBSCSI_REGISTER_RESET, 0);
    604604        scsi_enumerate_attached_devices(BUSLOGIC_BIOS_IO_PORT);
     
    606606    else
    607607    {
    608         DBG_SCSI("scsi_init: BusLogic SCSI adapter not detected\n");
     608        DBG_SCSI("%s: BusLogic SCSI adapter not detected\n", __func__);
    609609    }
    610610
     
    616616    {
    617617        /* Detected - Enumerate attached devices. */
    618         DBG_SCSI("scsi_init: LSI Logic SCSI adapter detected\n");
     618        DBG_SCSI("%s: LSI Logic SCSI adapter detected\n", __func__);
    619619        outb(LSILOGIC_BIOS_IO_PORT+VBSCSI_REGISTER_RESET, 0);
    620620        scsi_enumerate_attached_devices(LSILOGIC_BIOS_IO_PORT);
     
    622622    else
    623623    {
    624         DBG_SCSI("scsi_init: LSI Logic SCSI adapter not detected\n");
     624        DBG_SCSI("%s: LSI Logic SCSI adapter not detected\n", __func__);
    625625    }
    626626
     
    632632    {
    633633        /* Detected - Enumerate attached devices. */
    634         DBG_SCSI("scsi_init: LSI Logic SAS adapter detected\n");
     634        DBG_SCSI("%s: LSI Logic SAS adapter detected\n", __func__);
    635635        outb(LSILOGIC_SAS_BIOS_IO_PORT+VBSCSI_REGISTER_RESET, 0);
    636636        scsi_enumerate_attached_devices(LSILOGIC_SAS_BIOS_IO_PORT);
     
    638638    else
    639639    {
    640         DBG_SCSI("scsi_init: LSI Logic SAS adapter not detected\n");
     640        DBG_SCSI("%s: LSI Logic SAS adapter not detected\n", __func__);
    641641    }
    642642}
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