VirtualBox

Changeset 54748 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 13, 2015 4:25:27 PM (10 years ago)
Author:
vboxsync
Message:

VMMDev: LogRel cosmetics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r54007 r54748  
    340340        pThis->fu32AdditionsOk = VBOX_GUEST_INTERFACE_VERSION_OK(pThis->guestInfo.interfaceVersion);
    341341
    342         LogRel(("Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%u-bit)\n",
     342        LogRel(("VMMDev: Guest Additions information report: Interface = 0x%08X osType = 0x%08X (%u-bit)\n",
    343343                pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType,
    344344                (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32));
     
    388388        if (pThis->fHasMissedHB)
    389389        {
    390             LogRel(("vmmDevReqHandler_GuestHeartBeat: guest is alive\n"));
     390            LogRel(("VMMDev: GuestHeartBeat: Guest is alive\n"));
    391391            ASMAtomicWriteBool(&pThis->fHasMissedHB, false);
    392392        }
     
    406406    if (pThis->fHBCheckEnabled)
    407407    {
    408         uint64_t interval = TMTimerGetNano(pTimer) - pThis->uLastHBTime;
    409         if (!pThis->fHasMissedHB && interval >= pThis->u64HeartbeatInterval)
    410         {
    411             LogRel(("vmmDevHeartBeatCheckTimer: guest seems to be not responding, last heartbeat received %RU64 sec ago\n", interval / 1000000000));
     408        uint64_t uIntervalNs = TMTimerGetNano(pTimer) - pThis->uLastHBTime;
     409        if (!pThis->fHasMissedHB && uIntervalNs >= pThis->u64HeartbeatInterval)
     410        {
     411            LogRel(("VMMDev: HeartBeatCheckTimer: Guest seems to be unresponsive. Last heartbeat received %RU64 sec ago\n",
     412                    uIntervalNs / RT_NS_1SEC_64));
    412413            ASMAtomicWriteBool(&pThis->fHasMissedHB, true);
    413414        }
     
    440441            if (RT_SUCCESS(rc))
    441442            {
    442                 LogRel(("Heartbeat checking timer has been set to trigger every %RU64 sec\n", pThis->u64HeartbeatInterval / 500000000));
     443                /** @todo r=ramshankar: Why are we using 500000000 here? The comment in
     444                 *        u64HeartbeatInterval doesn't indicate anything special.  */
     445                LogRel(("VMMDev: Heartbeat checking timer set to trigger every %RU64 sec\n", pThis->u64HeartbeatInterval / 500000000));
    443446            }
    444447            else
    445                 LogRel(("Cannot create heartbeat check timer, rc=%Rrc\n", rc));
     448                LogRel(("VMMDev: Cannot create heartbeat check timer, rc=%Rrc\n", rc));
    446449        }
    447450        else
    448451        {
    449452            rc = TMTimerStop(pThis->pHBCheckTimer);
    450             LogRel(("Heartbeat checking timer has been stopped, rc=%Rrc\n", rc));
     453            LogRel(("VMMDev: Heartbeat checking timer has been stopped, rc=%Rrc\n", rc));
    451454        }
    452455    }
    453456    else
    454457    {
    455         LogRel(("vmmDevReqHandler_HeartbeatConfigure: enabled=%d\n", pThis->fHBCheckEnabled));
     458        LogRel(("VMMDev: vmmDevReqHandler_HeartbeatConfigure: fHBCheckEnabled=%RTbool\n", pThis->fHBCheckEnabled));
    456459        rc = VINF_SUCCESS;
    457460    }
     
    521524    VBoxGuestInfo2 const *pInfo2 = &((VMMDevReportGuestInfo2 *)pReqHdr)->guestInfo;
    522525
    523     LogRel(("Guest Additions information report: Version %d.%d.%d r%d '%.*s'\n",
     526    LogRel(("VMMDev: Guest Additions information report: Version %d.%d.%d r%d '%.*s'\n",
    524527            pInfo2->additionsMajor, pInfo2->additionsMinor, pInfo2->additionsBuild,
    525528            pInfo2->additionsRevision, sizeof(pInfo2->szName), pInfo2->szName));
     
    589592
    590593            /* non-strict mode, just zap the extra stuff. */
    591             LogRel(("ReportGuestInfo2: Ignoring unparsable version name bits: '%s' -> '%s'.\n", pszName, pszRelaxedName));
     594            LogRel(("VMMDev: ReportGuestInfo2: Ignoring unparsable version name bits: '%s' -> '%s'.\n", pszName, pszRelaxedName));
    592595            pszName = pszRelaxedName;
    593596        }
     
    744747        if (!pEntry)
    745748        {
    746             LogRelMax(10, ("VMM: Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status));
     749            LogRelMax(10, ("VMMDev: Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status));
    747750            return VERR_OUT_OF_RESOURCES;
    748751        }
     
    842845        pThis->guestCaps = fu32Caps;
    843846
    844         LogRel(("Guest Additions capability report (legacy): (0x%x) seamless: %s, hostWindowMapping: %s, graphics: yes\n",
     847        LogRel(("VMMDev: Guest Additions capability report (legacy): (0x%x) seamless: %s, hostWindowMapping: %s, graphics: yes\n",
    845848                fu32Caps,
    846849                fu32Caps & VMMDEV_GUEST_SUPPORTS_SEAMLESS ? "yes" : "no",
     
    870873    fu32Caps &= ~pReq->u32NotMask;
    871874
    872     LogRel(("Guest Additions capability report: (%#x -> %#x) seamless: %s, hostWindowMapping: %s, graphics: %s\n",
     875    LogRel(("VMMDev: Guest Additions capability report: (%#x -> %#x) seamless: %s, hostWindowMapping: %s, graphics: %s\n",
    873876            pThis->guestCaps, fu32Caps,
    874877            fu32Caps & VMMDEV_GUEST_SUPPORTS_SEAMLESS ? "yes" : "no",
     
    901904    pReq->pointerXPos   = pThis->mouseXAbs;
    902905    pReq->pointerYPos   = pThis->mouseYAbs;
    903     LogRel2(("VMMDevReq_GetMouseStatus: features = %#x, xAbs = %d, yAbs = %d\n",
     906    LogRel2(("VMMDev: vmmdevReqHandler_GetMouseStatus: mouseFeatures=%#x, xAbs=%d, yAbs=%d\n",
    904907             pReq->mouseFeatures, pReq->pointerXPos, pReq->pointerYPos));
    905908    return VINF_SUCCESS;
     
    919922    AssertMsgReturn(pReq->header.size == sizeof(*pReq), ("%u\n", pReq->header.size), VERR_INVALID_PARAMETER);
    920923
    921     LogRelFlowFunc(("mouseFeatures = %#x\n", pReq->mouseFeatures));
     924    LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: mouseFeatures=%#x\n", pReq->mouseFeatures));
    922925
    923926    bool fNotify = false;
     
    930933    pThis->mouseCapabilities |= (pReq->mouseFeatures & VMMDEV_MOUSE_GUEST_MASK);
    931934
    932     LogRelFlowFunc(("new host capabilities: %#x\n", pThis->mouseCapabilities));
     935    LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: New host capabilities: %#x\n", pThis->mouseCapabilities));
    933936
    934937    /*
     
    937940    if (fNotify)
    938941    {
    939         LogRelFlowFunc(("notifying connector\n"));
     942        LogRelFlow(("VMMDev: vmmdevReqHandler_SetMouseStatus: Notifying connector\n"));
    940943        pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities);
    941944    }
     
    10801083            /* new reservation */
    10811084            rc = PGMR3MappingsFix(pVM, pReq->hypervisorStart, pReq->hypervisorSize);
    1082             LogRel(("Guest reported fixed hypervisor window at 0%010x (size = %#x, rc = %Rrc)\n",
    1083                     pReq->hypervisorStart, pReq->hypervisorSize, rc));
     1085            LogRel(("VMMDev: Guest reported fixed hypervisor window at 0%010x (size = %#x, rc = %Rrc)\n", pReq->hypervisorStart,
     1086                    pReq->hypervisorSize, rc));
    10841087        }
    10851088        else if (RT_FAILURE(rc))
     
    11381141        case VMMDevPowerState_Pause:
    11391142        {
    1140             LogRel(("Guest requests the VM to be suspended (paused)\n"));
     1143            LogRel(("VMMDev: Guest requests the VM to be suspended (paused)\n"));
    11411144            return PDMDevHlpVMSuspend(pThis->pDevIns);
    11421145        }
     
    11441147        case VMMDevPowerState_PowerOff:
    11451148        {
    1146             LogRel(("Guest requests the VM to be turned off\n"));
     1149            LogRel(("VMMDev: Guest requests the VM to be turned off\n"));
    11471150            return PDMDevHlpVMPowerOff(pThis->pDevIns);
    11481151        }
     
    11521155            if (true /*pThis->fAllowGuestToSaveState*/)
    11531156            {
    1154                 LogRel(("Guest requests the VM to be saved and powered off\n"));
     1157                LogRel(("VMMDev: Guest requests the VM to be saved and powered off\n"));
    11551158                return PDMDevHlpVMSuspendSaveAndPowerOff(pThis->pDevIns);
    11561159            }
    1157             LogRel(("Guest requests the VM to be saved and powered off, declined\n"));
     1160            LogRel(("VMMDev: Guest requests the VM to be saved and powered off, declined\n"));
    11581161            return VERR_ACCESS_DENIED;
    11591162        }
    11601163
    11611164        default:
    1162             AssertMsgFailed(("VMMDev invalid power state request: %d\n", pReq->powerState));
     1165            AssertMsgFailed(("VMMDev: Invalid power state request: %d\n", pReq->powerState));
    11631166            return VERR_INVALID_PARAMETER;
    11641167    }
     
    15321535    AssertMsgReturn(pReq->header.size == sizeof(*pReq), ("%u\n", pReq->header.size), VERR_INVALID_PARAMETER);
    15331536
    1534     LogRelFlowFunc(("VMMDevCtlGuestFilterMask: or mask: %#x, not mask: %#x\n", pReq->u32OrMask, pReq->u32NotMask));
     1537    LogRelFlow(("VMMDev: vmmdevReqHandler_CtlGuestFilterMask: OR mask: %#x, NOT mask: %#x\n", pReq->u32OrMask, pReq->u32NotMask));
    15351538
    15361539    /* HGCM event notification is enabled by the VMMDev device
     
    27262729        else
    27272730        {
    2728             LogRelMax(10, ("VMMDev: the guest has not yet reported to us -- refusing operation of request #%d\n",
    2729                         requestHeader.requestType));
     2731            LogRelMax(10, ("VMMDev: Guest has not yet reported to us -- refusing operation of request #%d\n",
     2732                           requestHeader.requestType));
    27302733            requestHeader.rc = VERR_NOT_SUPPORTED;
    27312734        }
     
    27332736    else
    27342737    {
    2735         LogRelMax(50, ("VMMDev: request packet too big (%x). Refusing operation.\n", requestHeader.size));
     2738        LogRelMax(50, ("VMMDev: Request packet too big (%x). Refusing operation.\n", requestHeader.size));
    27362739        requestHeader.rc = VERR_NOT_SUPPORTED;
    27372740    }
     
    30663069    bool fNotify = fOldCaps != pThis->mouseCapabilities;
    30673070
    3068     LogRelFlowFunc(("fCapsAdded=0x%x, fCapsRemoved=0x%x, fNotify=%RTbool\n", fCapsAdded, fCapsRemoved, fNotify));
     3071    LogRelFlow(("VMMDev: vmmdevIPort_UpdateMouseCapabilities: fCapsAdded=0x%x, fCapsRemoved=0x%x, fNotify=%RTbool\n", fCapsAdded,
     3072                fCapsRemoved, fNotify));
    30693073
    30703074    if (fNotify)
     
    34653469    SSMR3GetU32(pSSM, &pThis->u32HostEventFlags);
    34663470
    3467 //    SSMR3GetBool(pSSM, &pThis->pVMMDevRAMR3->fHaveEvents);
     3471    //SSMR3GetBool(pSSM, &pThis->pVMMDevRAMR3->fHaveEvents);
    34683472    // here be dragons (probably)
    34693473    SSMR3GetMem(pSSM, &pThis->pVMMDevRAMR3->V, sizeof (pThis->pVMMDevRAMR3->V));
     
    35523556    if (pThis->fu32AdditionsOk)
    35533557    {
    3554         LogRel(("Guest Additions information report: additionsVersion = 0x%08X, osType = 0x%08X (%u-bit)\n",
     3558        LogRel(("VMMDev: Guest Additions information report: additionsVersion = 0x%08X, osType = 0x%08X (%u-bit)\n",
    35553559                pThis->guestInfo.interfaceVersion, pThis->guestInfo.osType,
    35563560                (pThis->guestInfo.osType & VBOXOSTYPE_x64) ? 64 : 32));
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