VirtualBox

Changeset 32654 in vbox


Ignore:
Timestamp:
Sep 21, 2010 8:14:08 AM (14 years ago)
Author:
vboxsync
Message:

Additions/VBoxGuest: limit the occurrence of some more LogRel statements

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

Legend:

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

    r32621 r32654  
    17911791        if (   rc != VERR_INTERRUPTED
    17921792            && rc != VERR_TIMEOUT)
    1793             LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
     1793        {
     1794            static unsigned s_cErrors = 0;
     1795            if (s_cErrors++ < 32)
     1796                LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
     1797        }
    17941798        else
    17951799            Log(("VBoxGuestCommonIOCtl: HGCM_CALL: %s Failed. rc=%Rrc.\n", f32bit ? "32" : "64", rc));
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r31749 r32654  
    706706                uint64_t cElapsed       = 0;
    707707                if (rc2 != VERR_NOT_FOUND)
    708                     LogRel(("vbglR0HGCMInternalDoCall: Failed to cancel the HGCM call on %Rrc: rc2=%Rrc\n", rc, rc2));
     708                {
     709                    static unsigned s_cErrors = 0;
     710                    if (s_cErrors++ < 32)
     711                        LogRel(("vbglR0HGCMInternalDoCall: Failed to cancel the HGCM call on %Rrc: rc2=%Rrc\n", rc, rc2));
     712                }
    709713                else
    710714                    Log(("vbglR0HGCMInternalDoCall: Cancel race rc=%Rrc rc2=%Rrc\n", rc, rc2));
     
    904908                if (   rc != VERR_INTERRUPTED
    905909                    && rc != VERR_TIMEOUT)
    906                     LogRel(("VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=%Rrc\n", rc));
     910                {
     911                    static unsigned s_cErrors = 0;
     912                    if (s_cErrors++ < 32)
     913                        LogRel(("VbglR0HGCMInternalCall: vbglR0HGCMInternalDoCall failed. rc=%Rrc\n", rc));
     914                }
    907915            }
    908916
     
    10431051        }
    10441052        else
    1045             LogRel(("VbglR0HGCMInternalCall32: VbglR0HGCMInternalCall failed. rc=%Rrc\n", rc));
     1053        {
     1054            static unsigned s_cErrors = 0;
     1055            if (s_cErrors++ < 32)
     1056                LogRel(("VbglR0HGCMInternalCall32: VbglR0HGCMInternalCall failed. rc=%Rrc\n", rc));
     1057        }
    10461058    }
    10471059    else
    1048         LogRel(("VbglR0HGCMInternalCall32: failed. rc=%Rrc\n", rc));
     1060    {
     1061        static unsigned s_cErrors = 0;
     1062        if (s_cErrors++ < 32)
     1063            LogRel(("VbglR0HGCMInternalCall32: failed. rc=%Rrc\n", rc));
     1064    }
    10491065
    10501066    RTMemTmpFree(pCallInfo64);
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