VirtualBox

Changeset 24265 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Nov 2, 2009 3:21:30 PM (15 years ago)
Author:
vboxsync
Message:

Devices,VMM: Replaced all VERR_SSM_LOAD_CONFIG_MISMATCH returns with SSMR3SetCfgError calls.

Location:
trunk/src/VBox/Devices/PC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r24195 r24265  
    26372637        int rc = SSMR3GetU32(pSSM, &cCpus); AssertRCReturn(rc, rc);
    26382638        if (cCpus != pThis->cCpus)
    2639         {
    2640             LogRel(("APIC: Config mismatch - cCpus: saved=%#x config=%#x\n", cCpus, pThis->cCpus));
    2641             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    2642         }
     2639            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - cCpus: saved=%#x config=%#x"), cCpus, pThis->cCpus);
    26432640        bool fIoApic;
    26442641        rc = SSMR3GetBool(pSSM, &fIoApic); AssertRCReturn(rc, rc);
    26452642        if (fIoApic != pThis->fIoApic)
    2646         {
    2647             LogRel(("APIC: Config mismatch - fIoApic: saved=%RTbool config=%RTbool\n", fIoApic, pThis->fIoApic));
    2648             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    2649         }
     2643            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - fIoApic: saved=%RTbool config=%RTbool"), fIoApic, pThis->fIoApic);
    26502644        uint32_t uApicVersion;
    26512645        rc = SSMR3GetU32(pSSM, &uApicVersion); AssertRCReturn(rc, rc);
    26522646        if (uApicVersion != (uint32_t)pThis->enmVersion)
    2653         {
    2654             LogRel(("APIC: Config mismatch - uApicVersion: saved=%#x config=%#x\n", uApicVersion, pThis->enmVersion));
    2655             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    2656         }
     2647            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - uApicVersion: saved=%#x config=%#x"), uApicVersion, pThis->enmVersion);
    26572648    }
    26582649
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r24087 r24265  
    789789        rc = SSMR3GetIOPort(pSSM, &IOPortBaseCfg); AssertRCReturn(rc, rc);
    790790        if (IOPortBaseCfg != pThis->IOPortBaseCfg)
    791         {
    792             LogRel(("PIT: Config mismatch - IOPortBaseCfg: saved=%RTiop config=%RTiop\n", IOPortBaseCfg, pThis->IOPortBaseCfg));
    793             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    794         }
     791            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - IOPortBaseCfg: saved=%RTiop config=%RTiop"),
     792                                    IOPortBaseCfg, pThis->IOPortBaseCfg);
    795793
    796794        uint8_t u8Irq;
    797795        rc = SSMR3GetU8(pSSM, &u8Irq); AssertRCReturn(rc, rc);
    798796        if (u8Irq != pThis->channels[0].irq)
    799         {
    800             LogRel(("PIT: Config mismatch - u8Irq: saved=%#x config=%#x\n", u8Irq, pThis->channels[0].irq));
    801             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    802         }
     797            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - u8Irq: saved=%#x config=%#x"),
     798                                    u8Irq, pThis->channels[0].irq);
    803799
    804800        bool fSpeakerCfg;
    805801        rc = SSMR3GetBool(pSSM, &fSpeakerCfg); AssertRCReturn(rc, rc);
    806802        if (fSpeakerCfg != pThis->fSpeakerCfg)
    807         {
    808             LogRel(("PIT: Config mismatch - fSpeakerCfg: saved=%RTbool config=%RTbool\n", fSpeakerCfg, pThis->fSpeakerCfg));
    809             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    810         }
     803            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - fSpeakerCfg: saved=%RTbool config=%RTbool"),
     804                                    fSpeakerCfg, pThis->fSpeakerCfg);
    811805    }
    812806
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r24089 r24265  
    665665        rc = SSMR3GetU8(pSSM, &u8Irq);          AssertRCReturn(rc, rc);
    666666        if (u8Irq != pThis->irq)
    667         {
    668             LogRel(("RTC: Config mismatch - u8Irq: saved=%#x config=%#x\n", u8Irq, pThis->irq));
    669             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    670         }
     667            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - u8Irq: saved=%#x config=%#x"), u8Irq, pThis->irq);
    671668
    672669        RTIOPORT IOPortBase;
    673670        rc = SSMR3GetIOPort(pSSM, &IOPortBase); AssertRCReturn(rc, rc);
    674671        if (IOPortBase != pThis->IOPortBase)
    675         {
    676             LogRel(("RTC: Config mismatch - IOPortBase: saved=%RTiop config=%RTiop\n", IOPortBase, pThis->IOPortBase));
    677             return VERR_SSM_LOAD_CONFIG_MISMATCH;
    678         }
     672            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Config mismatch - IOPortBase: saved=%RTiop config=%RTiop"), IOPortBase, pThis->IOPortBase);
    679673
    680674        bool fUTC;
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