summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMR3/PDMDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/VMM/VMMR3/PDMDevice.cpp')
-rw-r--r--src/VBox/VMM/VMMR3/PDMDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VBox/VMM/VMMR3/PDMDevice.cpp b/src/VBox/VMM/VMMR3/PDMDevice.cpp
index 8cc6d8380db..4220c021af5 100644
--- a/src/VBox/VMM/VMMR3/PDMDevice.cpp
+++ b/src/VBox/VMM/VMMR3/PDMDevice.cpp
@@ -313,7 +313,7 @@ int pdmR3DevInit(PVM pVM)
rc = MMHyperAlloc(pVM, sizeof(*pCritSect), 0, MM_TAG_PDM_DEVICE, (void **)&pCritSect);
else
rc = MMR3HeapAllocZEx(pVM, MM_TAG_PDM_DEVICE, sizeof(*pCritSect), (void **)&pCritSect);
- AssertLogRelMsgRCReturn(rc, ("Failed to allocate a critical section for the device\n", rc), rc);
+ AssertLogRelMsgRCReturn(rc, ("Failed to allocate a critical section for the device (%Rrc)\n", rc), rc);
/*
* Initialize it.
@@ -643,7 +643,7 @@ static DECLCALLBACK(int) pdmR3DevReg_Register(PPDMDEVREGCB pCallbacks, PCPDMDEVR
AssertMsgReturn( pReg->szName[0]
&& strlen(pReg->szName) < sizeof(pReg->szName)
&& pdmR3IsValidName(pReg->szName),
- ("Invalid name '%.s'\n", sizeof(pReg->szName), pReg->szName),
+ ("Invalid name '%.*s'\n", sizeof(pReg->szName), pReg->szName),
VERR_PDM_INVALID_DEVICE_REGISTRATION);
AssertMsgReturn( !(pReg->fFlags & PDM_DEVREG_FLAGS_RC)
|| ( pReg->szRCMod[0]