[REACTOS] Fix some instances of DPRINTs with trailing whitespace before newlines.

This commit is contained in:
Hermès Bélusca-Maïto 2021-09-12 19:49:54 +02:00
parent d6c8fe7c37
commit 9b1edceae1
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
27 changed files with 136 additions and 136 deletions

View file

@ -72,7 +72,7 @@ RtlpCreateCriticalSectionSem(PRTL_CRITICAL_SECTION CriticalSection)
hNewEvent = INVALID_HANDLE_VALUE;
}
DPRINT("Created Event: %p \n", hNewEvent);
DPRINT("Created Event: %p\n", hNewEvent);
/* Exchange the LockSemaphore field with the new handle, if it is still 0 */
if (InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,

View file

@ -151,7 +151,7 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status))
{
/* failure */
DPRINT("NtQueryInformationProcess 1 0x%lx \n", Status);
DPRINT("NtQueryInformationProcess 1 0x%lx\n", Status);
return Status;
}
@ -176,7 +176,7 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status))
{
/* failure */
DPRINT("NtReadVirtualMemory 1 0x%lx \n", Status);
DPRINT("NtReadVirtualMemory 1 0x%lx\n", Status);
return Status;
}
@ -194,7 +194,7 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status))
{
/* failure */
DPRINT("NtReadVirtualMemory 2 0x%lx \n", Status);
DPRINT("NtReadVirtualMemory 2 0x%lx\n", Status);
return Status;
}
@ -213,7 +213,7 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status))
{
/* failure */
DPRINT( "NtReadVirtualMemory 3 0x%lx \n", Status);
DPRINT( "NtReadVirtualMemory 3 0x%lx\n", Status);
return Status;
}
@ -231,7 +231,7 @@ RtlpQueryRemoteProcessModules(HANDLE ProcessHandle,
if (!NT_SUCCESS(Status))
{
/* failure */
DPRINT( "NtReadVirtualMemory 3 0x%lx \n", Status);
DPRINT( "NtReadVirtualMemory 3 0x%lx\n", Status);
return Status;
}
@ -370,7 +370,7 @@ RtlQueryProcessDebugInformation(IN ULONG ProcessId,
Buf->OffsetFree = Buf->OffsetFree + LSize;
}
DPRINT("QueryProcessDebugInformation end \n");
DPRINT("QueryProcessDebugInformation end\n");
DPRINT("QueryDebugInfo : 0x%lx\n", Buf->OffsetFree);
}
else
@ -457,7 +457,7 @@ RtlQueryProcessDebugInformation(IN ULONG ProcessId,
Buf->OffsetFree = Buf->OffsetFree + LSize;
}
DPRINT("QueryProcessDebugInformation end \n");
DPRINT("QueryProcessDebugInformation end\n");
DPRINT("QueryDebugInfo : 0x%lx\n", Buf->OffsetFree);
}

View file

@ -227,7 +227,7 @@ static VOID
DbgPrint("R0: %lx R1: %lx R2: %lx R3: %lx\n", pc->R0, pc->R1, pc->R2, pc->R3);
DbgPrint("R4: %lx R5: %lx R6: %lx R7: %lx\n", pc->R4, pc->R5, pc->R6, pc->R7);
DbgPrint("R8: %lx R9: %lx R10: %lx R11: %lx\n", pc->R8, pc->R9, pc->R10, pc->R11);
DbgPrint("R12: %lx \n", pc->R12);
DbgPrint("R12: %lx\n", pc->R12);
#else
#pragma message ("Unknown architecture")
#endif

View file

@ -322,7 +322,7 @@ RtlpDphAllocateVm(PVOID *Base, SIZE_T Size, ULONG Type, ULONG Protection)
&Size,
Type,
Protection);
DPRINT("Page heap: AllocVm (%p, %Ix, %lx) status %lx \n", Base, Size, Type, Status);
DPRINT("Page heap: AllocVm (%p, %Ix, %lx) status %lx\n", Base, Size, Type, Status);
/* Check for failures */
if (!NT_SUCCESS(Status))
{
@ -331,7 +331,7 @@ RtlpDphAllocateVm(PVOID *Base, SIZE_T Size, ULONG Type, ULONG Protection)
_InterlockedIncrement(&RtlpDphCounter);
if (RtlpDphBreakOptions & DPH_BREAK_ON_RESERVE_FAIL)
{
DPRINT1("Page heap: AllocVm (%p, %Ix, %x) failed with %x \n", Base, Size, Type, Status);
DPRINT1("Page heap: AllocVm (%p, %Ix, %lx) failed with %lx\n", Base, Size, Type, Status);
DbgBreakPoint();
return Status;
}
@ -341,7 +341,7 @@ RtlpDphAllocateVm(PVOID *Base, SIZE_T Size, ULONG Type, ULONG Protection)
_InterlockedIncrement(&RtlpDphAllocFails);
if (RtlpDphBreakOptions & DPH_BREAK_ON_COMMIT_FAIL)
{
DPRINT1("Page heap: AllocVm (%p, %Ix, %x) failed with %x \n", Base, Size, Type, Status);
DPRINT1("Page heap: AllocVm (%p, %Ix, %lx) failed with %lx\n", Base, Size, Type, Status);
DbgBreakPoint();
return Status;
}
@ -358,7 +358,7 @@ RtlpDphFreeVm(PVOID Base, SIZE_T Size, ULONG Type)
/* Free the memory */
Status = RtlpSecMemFreeVirtualMemory(NtCurrentProcess(), &Base, &Size, Type);
DPRINT("Page heap: FreeVm (%p, %Ix, %x) status %x \n", Base, Size, Type, Status);
DPRINT("Page heap: FreeVm (%p, %Ix, %lx) status %lx\n", Base, Size, Type, Status);
/* Log/report failures */
if (!NT_SUCCESS(Status))
{
@ -367,7 +367,7 @@ RtlpDphFreeVm(PVOID Base, SIZE_T Size, ULONG Type)
_InterlockedIncrement(&RtlpDphReleaseFails);
if (RtlpDphBreakOptions & DPH_BREAK_ON_RELEASE_FAIL)
{
DPRINT1("Page heap: FreeVm (%p, %Ix, %x) failed with %x \n", Base, Size, Type, Status);
DPRINT1("Page heap: FreeVm (%p, %Ix, %lx) failed with %lx\n", Base, Size, Type, Status);
DbgBreakPoint();
return Status;
}
@ -377,7 +377,7 @@ RtlpDphFreeVm(PVOID Base, SIZE_T Size, ULONG Type)
_InterlockedIncrement(&RtlpDphFreeFails);
if (RtlpDphBreakOptions & DPH_BREAK_ON_FREE_FAIL)
{
DPRINT1("Page heap: FreeVm (%p, %Ix, %x) failed with %x \n", Base, Size, Type, Status);
DPRINT1("Page heap: FreeVm (%p, %Ix, %lx) failed with %lx\n", Base, Size, Type, Status);
DbgBreakPoint();
return Status;
}
@ -402,7 +402,7 @@ RtlpDphProtectVm(PVOID Base, SIZE_T Size, ULONG Protection)
_InterlockedIncrement(&RtlpDphProtectFails);
if (RtlpDphBreakOptions & DPH_BREAK_ON_PROTECT_FAIL)
{
DPRINT1("Page heap: ProtectVm (%p, %Ix, %x) failed with %x \n", Base, Size, Protection, Status);
DPRINT1("Page heap: ProtectVm (%p, %Ix, %lx) failed with %lx\n", Base, Size, Protection, Status);
DbgBreakPoint();
return Status;
}
@ -1873,7 +1873,7 @@ RtlpPageHeapFree(HANDLE HeapPtr,
{
if (RtlpDphBreakOptions & DPH_BREAK_ON_NULL_FREE)
{
DPRINT1("Page heap: freeing a null pointer \n");
DPRINT1("Page heap: freeing a null pointer\n");
DbgBreakPoint();
}
return TRUE;

View file

@ -93,7 +93,7 @@ RtlpInitEnvironment(HANDLE ProcessHandle,
PAGE_READWRITE);
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to reserve 1MB of space \n");
DPRINT1("Failed to reserve 1MB of space\n");
return Status;
}
}