Changeset 53801 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Jan 14, 2015 1:31:53 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97609
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r53767 r53801 744 744 if (!pEntry) 745 745 { 746 static int g_cLogEntries = 0; 747 if (g_cLogEntries++ < 10) 748 LogRel(("VMM: Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status)); 746 LogRelMax(10, ("VMM: Facility table is full - facility=%u status=%u.\n", pStatus->facility, pStatus->status)); 749 747 return VERR_OUT_OF_RESOURCES; 750 748 } … … 2726 2724 else 2727 2725 { 2728 static int s_cRelWarn; 2729 if (s_cRelWarn < 10) 2730 { 2731 s_cRelWarn++; 2732 LogRel(("VMMDev: the guest has not yet reported to us -- refusing operation of request #%d\n", 2726 LogRelMax(10, ("VMMDev: the guest has not yet reported to us -- refusing operation of request #%d\n", 2733 2727 requestHeader.requestType)); 2734 }2735 2728 requestHeader.rc = VERR_NOT_SUPPORTED; 2736 2729 } … … 2738 2731 else 2739 2732 { 2740 static int s_cRelWarn; 2741 if (s_cRelWarn < 50) 2742 { 2743 s_cRelWarn++; 2744 LogRel(("VMMDev: request packet too big (%x). Refusing operation.\n", requestHeader.size)); 2745 } 2733 LogRelMax(50, ("VMMDev: request packet too big (%x). Refusing operation.\n", requestHeader.size)); 2746 2734 requestHeader.rc = VERR_NOT_SUPPORTED; 2747 2735 } -
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r50982 r53801 652 652 if (cParms > VMMDEV_MAX_HGCM_PARMS) 653 653 { 654 static int s_cRelWarn; 655 if (s_cRelWarn < 50) 656 { 657 s_cRelWarn++; 658 LogRel(("VMMDev: request packet with too many parameters (%d). Refusing operation.\n", cParms)); 659 } 654 LogRelMax(50, ("VMMDev: request packet with too many parameters (%d). Refusing operation.\n", cParms)); 660 655 return VERR_INVALID_PARAMETER; 661 656 } … … 1201 1196 if (cParms > VMMDEV_MAX_HGCM_PARMS) 1202 1197 { 1203 static int s_cRelWarn; 1204 if (s_cRelWarn < 50) 1205 { 1206 s_cRelWarn++; 1207 LogRel(("VMMDev: request packet with too many parameters (%d). Refusing operation.\n", cParms)); 1208 } 1198 LogRelMax(50, ("VMMDev: request packet with too many parameters (%d). Refusing operation.\n", cParms)); 1209 1199 return VERR_INVALID_PARAMETER; 1210 1200 }
Note:
See TracChangeset
for help on using the changeset viewer.