VirtualBox

Changeset 49946 in vbox for trunk/src


Ignore:
Timestamp:
Dec 17, 2013 8:10:20 AM (11 years ago)
Author:
vboxsync
Message:

Additions/VBoxGuest: be more quiet with release logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r48311 r49946  
    7777DECLINLINE(uint32_t) VBoxGuestCommonGetHandledEventsLocked(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession)
    7878{
    79     if(!pDevExt->u32AcquireModeGuestCaps)
     79    if (!pDevExt->u32AcquireModeGuestCaps)
    8080        return VMMDEV_EVENT_VALID_EVENT_MASK;
    8181
     
    463463            if (!pDevExt->MemBalloon.paMemObj)
    464464            {
    465                 LogRel(("VBoxGuestSetBalloonSizeKernel: no memory for paMemObj!\n"));
     465                LogRel(("vboxGuestSetBalloonSizeKernel: no memory for paMemObj!\n"));
    466466                return VERR_NO_MEMORY;
    467467            }
     
    20742074    {
    20752075        LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: cbData=%#zx (%zu) required size is %#zx (%zu)\n",
    2076              cbData, cbActual));
     2076               cbData, cbData, cbActual, cbActual));
    20772077        return VERR_INVALID_PARAMETER;
    20782078    }
     
    25232523{
    25242524    if (fCaps & (~(VMMDEV_GUEST_SUPPORTS_SEAMLESS | VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING | VMMDEV_GUEST_SUPPORTS_GRAPHICS)))
    2525     {
    2526         LogRel(("VBoxGuestCommonGuestCapsValidateValues: invalid guest caps 0x%x\n", fCaps));
    25272525        return false;
    2528     }
     2526
    25292527    return true;
    25302528}
     
    25712569    uint32_t fSetCaps = 0;
    25722570
    2573     LogRel(("VBoxGuest: VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x)\n", pSession, fOrMask, fNotMask, enmFlags));
    2574 
    25752571    if (!VBoxGuestCommonGuestCapsValidateValues(fOrMask))
    25762572    {
    2577         LogRel(("invalid fOrMask 0x%x\n", fOrMask));
     2573        LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- invalid fOrMask\n",
     2574                pSession, fOrMask, fNotMask, enmFlags));
    25782575        return VERR_INVALID_PARAMETER;
    25792576    }
    25802577
    2581     if (enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE
    2582             && enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_NONE)
    2583     {
    2584         LogRel(("invalid enmFlags %d\n", enmFlags));
     2578    if (   enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE
     2579        && enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_NONE)
     2580    {
     2581        LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- invalid enmFlags %d\n",
     2582                pSession, fOrMask, fNotMask, enmFlags));
    25852583        return VERR_INVALID_PARAMETER;
    25862584    }
     2585
    25872586    if (!VBoxGuestCommonGuestCapsModeSet(pDevExt, fOrMask, true, &fSetCaps))
    25882587    {
    2589         LogRel(("calling caps acquire for set caps %d\n", fOrMask));
     2588        LogRel(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- calling caps acquire for set caps\n",
     2589                pSession, fOrMask, fNotMask, enmFlags));
    25902590        return VERR_INVALID_STATE;
    25912591    }
     
    25932593    if (enmFlags & VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE)
    25942594    {
    2595         Log(("Configured Acquire caps: 0x%x\n", fOrMask));
     2595        Log(("VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x) -- configured acquire caps: 0x%x\n",
     2596             pSession, fOrMask, fNotMask, enmFlags));
    25962597        return VINF_SUCCESS;
    25972598    }
     
    26452646
    26462647    int rc = VBoxGuestSetGuestCapabilities(fSessionOrCaps, fSessionNotCaps);
    2647     if (!RT_SUCCESS(rc))
    2648     {
    2649         LogRel(("VBoxGuest: VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc %d\n", rc));
     2648    if (!RT_FAILURE(rc))
     2649    {
     2650        LogRel(("VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc=%Rrc\n", rc));
    26502651
    26512652        /* Failure branch
     
    26772678{
    26782679    int rc = VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, pAcquire->u32OrMask, pAcquire->u32NotMask, pAcquire->enmFlags);
    2679     if (!RT_SUCCESS(rc))
    2680         LogRel(("VBoxGuestCommonGuestCapsAcquire: failed rc %d\n", rc));
     2680    if (RT_FAILURE(rc))
     2681        LogRel(("VBoxGuestCommonGuestCapsAcquire: failed rc=%Rrc\n", rc));
    26812682    pAcquire->rc = rc;
    26822683    return VINF_SUCCESS;
     
    29152916            default:
    29162917            {
    2917                 LogRel(("VBoxGuestCommonIOCtl: Unknown request iFunction=%#x Stripped size=%#x\n", iFunction,
    2918                                 VBOXGUEST_IOCTL_STRIP_SIZE(iFunction)));
     2918                LogRel(("VBoxGuestCommonIOCtl: Unknown request iFunction=%#x stripped size=%#x\n",
     2919                        iFunction, VBOXGUEST_IOCTL_STRIP_SIZE(iFunction)));
    29192920                rc = VERR_NOT_SUPPORTED;
    29202921                break;
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