NB: Not touching calls in "third-party" code: class and classpnp.
if (!NT_SUCCESS(Status))
{
/* This is a pretty bad failure. ASSERT on checked builds and exit */
- ASSERTMSG("RtlCreateProcessParameters", NT_SUCCESS(Status));
+ ASSERTMSG("RtlCreateProcessParameters failed.\n", NT_SUCCESS(Status));
DPRINT1("SMSS: RtlCreateProcessParameters failed for %wZ - Status == %lx\n",
FileName, Status);
return Status;
/* Warn user, unless wrong case is "first and not too big entry", which is otherwise harmless. */
if (PcBiosMapCount > 0 || Regs.x.ecx > sizeof(BIOS_MEMORY_MAP))
{
- ASSERTMSG("Int 15h AX=E820h returned an invalid entry length!", FALSE);
+ ASSERTMSG("Int 15h AX=E820h returned an invalid entry length!\n", FALSE);
}
/* We keep previous entries (if any), but do not dare trying next entries.
* We assume these entries are good to use as is. If they are not, we are in trouble...
PcBiosMemoryMap[PcBiosMapCount].Length,
PcBiosMemoryMap[PcBiosMapCount].Type,
PcBiosMemoryMap[PcBiosMapCount].ExtendedAttributesAsULONG);
- // NotWantedForPublicBuilds: ASSERTMSG("EA.ErrorLog = 1. Check/Report then CONTinue.", FALSE);
+ // NotWantedForPublicBuilds: ASSERTMSG("EA.ErrorLog = 1. Check/Report then CONTinue.\n", FALSE);
}
if (PcBiosMemoryMap[PcBiosMapCount].Length == 0)
{
ERR("PcMemoryMap is already full! (PcBiosMapCount = %lu, PcMapCount = %lu (>= %lu))\n",
PcBiosMapCount, PcMapCount, MaxMemoryMapSize);
- // NotWantedForPublicBuilds: ASSERTMSG("PcMemoryMap is already full!", FALSE);
+ // NotWantedForPublicBuilds: ASSERTMSG("PcMemoryMap is already full!\n", FALSE);
/* We keep previous entries, and half-retrieve current/next entries.
* We assume all these entries are good to use as is. If they are not, we are in trouble...
*
{
ERR("PcBiosMemoryMap is already full! (PcBiosMapCount = %lu (>= %lu), PcMapCount = %lu)\n",
PcBiosMapCount, MAX_BIOS_DESCRIPTORS, PcMapCount);
- // NotWantedForPublicBuilds: ASSERTMSG("PcBiosMemoryMap is already full!", FALSE);
+ // NotWantedForPublicBuilds: ASSERTMSG("PcBiosMemoryMap is already full!\n", FALSE);
/* We keep retrieved entries, but ignore next entries.
* We assume these entries are good to use as is. If they are not, we are in trouble...
*
// Only PDO can handle this request. Somebody above
// is not playing by rule.
//
- ASSERTMSG("Someone above is handling TargetDeviceRelation", !deviceRelations);
+ ASSERTMSG("Someone above is handling TargetDeviceRelation\n", !deviceRelations);
}
deviceRelations = ExAllocatePoolWithTag(PagedPool,
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI tranirq_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI tranirq_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
else
{
/* Logic error in the driver */
- ASSERTMSG("PCI Skip Function - Operation type unknown.", FALSE);
+ ASSERTMSG("PCI Skip Function - Operation type unknown.\n", FALSE);
}
/* Check for legacy bridges during resource enumeration */
if (!PcipIsSameDevice(PdoExtension, &PciData))
{
/* Fail */
- ASSERTMSG("PCI Set resources - not same device", FALSE);
+ ASSERTMSG("PCI Set resources - not same device.\n", FALSE);
return STATUS_DEVICE_DOES_NOT_EXIST;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI agpintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI agpintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI busintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI busintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI pcicbintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI pcicbintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI devpresent_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI devpresent_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI lddintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI lddintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI locintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI locintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI PciPmeInterfaceInitializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI PciPmeInterfaceInitializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
{
UNREFERENCED_PARAMETER(Instance);
/* PnP Interfaces don't get Initialized */
- ASSERTMSG("PCI routeintrf_Initializer, unexpected call.", FALSE);
+ ASSERTMSG("PCI routeintrf_Initializer, unexpected call.\n", FALSE);
return STATUS_UNSUCCESSFUL;
}
Status,
STATUS_BUFFER_TOO_SMALL);
*OutputBuffer = NULL;
- ASSERTMSG("PCI Successfully did the impossible!", FALSE);
+ ASSERTMSG("PCI Successfully did the impossible!\n", FALSE);
break;
}
ShareAccess = FILE_SHARE_READ | FILE_SHARE_WRITE;
else
{
- ASSERTMSG("Invalid NamedPipeConfiguration parameter value!", FALSE);
+ ASSERTMSG("Invalid NamedPipeConfiguration parameter value!\n", FALSE);
return STATUS_INVALID_PARAMETER_6;
}
ShareAccess = FILE_SHARE_READ | FILE_SHARE_WRITE;
else
{
- ASSERTMSG("Invalid NamedPipeConfiguration parameter value!", FALSE);
+ ASSERTMSG("Invalid NamedPipeConfiguration parameter value!\n", FALSE);
return STATUS_INVALID_PARAMETER_3;
}
FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR, PartialResourceList);
if (Length > CmpConfigurationAreaSize)
{
- ASSERTMSG("Component too large -- need reallocation!", FALSE);
+ ASSERTMSG("Component too large -- need reallocation!\n", FALSE);
}
else
{
ASSERT(ParentKcb != NULL);
/* Check if everything was found cached */
- if (!TotalRemainingSubkeys) ASSERTMSG("Caching not implemented", FALSE);
+ if (!TotalRemainingSubkeys)
+ ASSERTMSG("Caching not implemented\n", FALSE);
/* Don't do anything if we're being deleted */
if (Kcb->Delete)
}
#define ASSERT_VALUE_CACHE() \
- ASSERTMSG("Cached Values Not Yet Supported!", FALSE);
+ ASSERTMSG("Cached Values Not Yet Supported!\n", FALSE);
/* FUNCTIONS *****************************************************************/
MAX_FAST_REFS + 1))
{
/* This should never happen */
- ASSERTMSG("Callback block is already undergoing rundown", FALSE);
+ ASSERTMSG("Callback block is already undergoing rundown\n", FALSE);
return FALSE;
}
}
// Hack since bigkeys are not yet supported
//
#define ASSERT_VALUE_BIG(h, s) \
- ASSERTMSG("Big keys not supported!", !CmpIsKeyValueBig(h, s));
+ ASSERTMSG("Big keys not supported!\n", !CmpIsKeyValueBig(h, s));
//
// CM_KEY_CONTROL_BLOCK Signatures
}
/* You should not have made it this far */
- // ASSERTMSG("System is still up and running?!", FALSE);
+ // ASSERTMSG("System is still up and running?!\n", FALSE);
DPRINT1("System is still up and running, you may not have chosen a yet supported power option: %u\n", PopAction.Action);
break;
}
// Hack since bigkeys are not yet supported
//
#define ASSERT_VALUE_BIG(h, s) \
- ASSERTMSG("Big keys not supported!", !CmpIsKeyValueBig(h, s));
+ ASSERTMSG("Big keys not supported!\n", !CmpIsKeyValueBig(h, s));
//
// Returns whether or not this is a small valued key