- Merge from KD-branch:

- Remove double implementation of DebugPrint with a single correct implementation which calls DebugService, and moved DebugPrint to rtl since it can now be shared properly.

svn path=/trunk/; revision=25942
This commit is contained in:
Alex Ionescu 2007-03-02 06:11:27 +00:00
parent 2e20ca1f14
commit a0a19e46ae
3 changed files with 1 additions and 42 deletions

View file

@ -14,28 +14,6 @@
/* FUNCTIONS *****************************************************************/
NTSTATUS
NTAPI
DebugService(IN ULONG Service,
IN PVOID Buffer,
IN ULONG Length,
IN PVOID Argument1,
IN PVOID Argument2);
NTSTATUS
NTAPI
DebugPrint(IN PANSI_STRING DebugString,
IN ULONG ComponentId,
IN ULONG Level)
{
/* Call the INT2D Service */
return DebugService(BREAKPOINT_PRINT,
DebugString->Buffer,
DebugString->Length,
UlongToPtr(ComponentId),
UlongToPtr(Level));
}
/*
* @implemented
*/

View file

@ -16,7 +16,6 @@
/* PRIVATE FUNCTIONS ********************************************************/
#if 0
NTSTATUS
NTAPI
DebugPrint(IN PANSI_STRING DebugString,
@ -28,15 +27,8 @@ DebugPrint(IN PANSI_STRING DebugString,
DebugString->Buffer,
DebugString->Length,
UlongToPtr(ComponentId),
UlongToPtr(Level));
UlongToPtr(Level));
}
#else
NTSTATUS
NTAPI
DebugPrint(IN PANSI_STRING DebugString,
IN ULONG ComponentId,
IN ULONG Level);
#endif
NTSTATUS
NTAPI

View file

@ -23,17 +23,6 @@ extern ULONG NtOSCSDVersion;
/* FUNCTIONS *****************************************************************/
NTSTATUS
NTAPI
DebugPrint(IN PANSI_STRING DebugString,
IN ULONG ComponentId,
IN ULONG Level)
{
/* Temporary hack */
KdpPrintString(DebugString->Buffer, DebugString->Length);
return STATUS_SUCCESS;
}
/*
* @implemented
*/