VirtualBox

Changeset 26358 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 9, 2010 12:30:39 PM (15 years ago)
Author:
vboxsync
Message:

Additions/common, Additions/Solaris: Fix logging.

Location:
trunk/src/VBox/Additions/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r26123 r26358  
    603603    if (RT_UNLIKELY(rc))
    604604    {
    605         LogRel((DEVICE_NAME "::IOCtl: ddi_copyin failed to read header pArg=%p Cmd=%d. rc=%d.\n", pArg, Cmd, rc));
     605        LogRel((DEVICE_NAME "::IOCtl: ddi_copyin failed to read header pArg=%p Cmd=%d. rc=%#x.\n", pArg, Cmd, rc));
    606606        return EINVAL;
    607607    }
     
    609609    if (ReqWrap.u32Magic != VBGLBIGREQ_MAGIC)
    610610    {
    611         LogRel((DEVICE_NAME "::IOCtl: bad magic %#x; pArg=%p Cmd=%d.\n", ReqWrap.u32Magic, pArg, Cmd));
     611        LogRel((DEVICE_NAME "::IOCtl: bad magic %#x; pArg=%p Cmd=%#x.\n", ReqWrap.u32Magic, pArg, Cmd));
    612612        return EINVAL;
    613613    }
     
    615615                    || ReqWrap.cbData > _1M*16))
    616616    {
    617         LogRel((DEVICE_NAME "::IOCtl: bad size %#x; pArg=%p Cmd=%d.\n", ReqWrap.cbData, pArg, Cmd));
     617        LogRel((DEVICE_NAME "::IOCtl: bad size %#x; pArg=%p Cmd=%#x.\n", ReqWrap.cbData, pArg, Cmd));
    618618        return EINVAL;
    619619    }
     
    671671    else
    672672    {
    673         LogRel((DEVICE_NAME "::IOCtl: VBoxGuestCommonIOCtl failed. rc=%d\n", rc));
     673        if (rc != VERR_INTERRUPTED)
     674            LogRel((DEVICE_NAME "::IOCtl: VBoxGuestCommonIOCtl failed. rc=%d\n", rc));
     675        else
     676            Log((DEVICE_NAME "::IOCtl: VBoxGuestCommonIOCtl failed. rc=%d\n", rc));
    674677        rc = RTErrConvertToErrno(rc);
    675678    }
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r26131 r26358  
    156156            {
    157157                pDevExt->hGuestMappings = hFictive != NIL_RTR0MEMOBJ ? hFictive : hObj;
    158                 LogRel(("VBoxGuest: %p LB %#x; uAlignment=%#x iTry=%u hGuestMappings=%p (%s)\n",
     158                Log(("VBoxGuest: %p LB %#x; uAlignment=%#x iTry=%u hGuestMappings=%p (%s)\n",
    159159                        RTR0MemObjAddress(pDevExt->hGuestMappings),
    160160                        RTR0MemObjSize(pDevExt->hGuestMappings),
     
    13761376    }
    13771377    else
    1378         LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
     1378    {
     1379        if (rc != VERR_INTERRUPTED)
     1380            LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
     1381        else
     1382            Log(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
     1383    }
    13791384    return rc;
    13801385}
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r26127 r26358  
    896896            }
    897897            else
    898                 LogRel(("VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=%Rrc\n", rc));
     898            {
     899                if (rc != VERR_INTERRUPTED)
     900                    LogRel(("VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=%Rrc\n", rc));
     901            }
    899902
    900903            if (!fLeakIt)
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