Changeset 25732 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 11, 2010 4:23:26 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r25728 r25732 4911 4911 4912 4912 /* Initialize critical section */ 4913 rc = PDMDevHlpCritSectInit(pDevIns, &pState->cs, pState->szInstance);4913 rc = PDMDevHlpCritSectInit(pDevIns, &pState->cs, RT_SRC_POS, "%s", pState->szInstance); 4914 4914 if (RT_FAILURE(rc)) 4915 4915 return rc; 4916 4916 #ifndef E1K_GLOBAL_MUTEX 4917 char szTmp[sizeof(pState->szInstance) + 2]; 4918 RTStrPrintf(szTmp, sizeof(szTmp), "%sRX", pState->szInstance); 4919 rc = PDMDevHlpCritSectInit(pDevIns, &pState->csRx, szTmp); 4917 rc = PDMDevHlpCritSectInit(pDevIns, &pState->csRx, RT_SRC_POS, "%sRX", pState->szInstance); 4920 4918 if (RT_FAILURE(rc)) 4921 4919 return rc; -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r25728 r25732 5116 5116 * attaching drivers or anything else that may call us back. 5117 5117 */ 5118 char szName[24]; 5119 RTStrPrintf(szName, sizeof(szName), "PCNet#%d", iInstance); 5120 rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSect, szName); 5118 rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSect, RT_SRC_POS, "PCNet#%d", iInstance); 5121 5119 if (RT_FAILURE(rc)) 5122 5120 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.