VirtualBox

Changeset 32275 in vbox for trunk/src


Ignore:
Timestamp:
Sep 7, 2010 11:33:42 AM (14 years ago)
Author:
vboxsync
Message:

VBoxGuest.cpp: r=bird: no experiments here.

File:
1 edited

Legend:

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

    r32274 r32275  
    4040#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
    4141# include "revision-generated.h"
    42 #endif
    43 #if defined(RT_OS_WINDOWS)
    44 RT_C_DECLS_BEGIN
    45 # include <ntddk.h>
    46 RT_C_DECLS_END
    4742#endif
    4843
     
    15701565
    15711566/**
    1572  * Helper to (re-)init the HGCM communication.
    1573  *
    1574  * @param pDevExt   Device extension
     1567 * Helper to reinit the VBoxVMM communication after hibernation.
     1568 *
     1569 * @returns VBox status code.
     1570 * @param   pDevExt         The device extension.
     1571 * @param   enmOSType       The OS type.
     1572 *
     1573 * @todo    r=bird: This is a misnomer, it's related to VMMDev communication in
     1574 *          general, not only HGCM.  Further, it's reinit only.  Init can only
     1575 *          be done VBoxGuestInitDevExt.  A better name would be
     1576 *          VBoxGuestReinitDevExtAfterHibernation.
    15751577 */
    15761578int VBoxGuestHGCMInitCommunication(PVBOXGUESTDEVEXT pDevExt, VBOXOSTYPE enmOSType)
     
    15811583        rc = VBoxGuestReportDriverStatus(true /* Driver is active */);
    15821584        if (RT_FAILURE(rc))
    1583             Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest driver status, vrc = %d\n", rc));
     1585            Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest driver status, rc=%Rrc\n", rc));
    15841586    }
    15851587    else
    1586         Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest information to host, vrc = %d\n", rc));
    1587     Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: returned with vrc = %d\n", rc));
     1588        Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest information to host, rc=%Rrc\n", rc));
     1589    Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: returned with rc=%Rrc\n", rc));
    15881590    return rc;
    15891591}
     
    19661968        if (pDevExt->MemBalloon.pOwner == pSession)
    19671969        {
    1968             rc = vboxGuestSetBalloonSizeFromUser(pDevExt, pSession,
    1969                                                  pInfo->u64ChunkAddr,
    1970                                                  pInfo->fInflate > 0 ? true : false);
     1970            rc = vboxGuestSetBalloonSizeFromUser(pDevExt, pSession, pInfo->u64ChunkAddr, !!pInfo->fInflate);
    19711971            if (pcbDataReturned)
    19721972                *pcbDataReturned = 0;
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