#
# Whether to compile for debugging
#
-DBG := 1
+DBG := 0
#
# Whether to compile a multiprocessor or single processor version
-/* $Id: blue.c,v 1.31 2001/08/27 01:25:37 ekohl Exp $
+/* $Id: blue.c,v 1.32 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
UNICODE_STRING DeviceName;
UNICODE_STRING SymlinkName;
- DbgPrint ("Screen Driver 0.0.6\n");
+ DPRINT ("Screen Driver 0.0.6\n");
DriverObject->MajorFunction[IRP_MJ_CREATE] = ScrCreate;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = ScrDispatch;
RtlInitUnicodeString( &arcname, L"\\ArcName\\multi(0)disk(0)fdisk(0)" );
Status = IoAssignArcName( &arcname, &DeviceName );
- DbgPrint( "Floppy drive initialized\n" );
+ DPRINT( "Floppy drive initialized\n" );
return TRUE;
devicecleanup:
DriverEntry(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{
- DbgPrint("Floppy driver\n");
+ DPRINT("Floppy driver\n");
/* Export other driver entry points... */
DriverObject->MajorFunction[IRP_MJ_CREATE] = FloppyDispatchOpenClose;
-/* $Id: ide.c,v 1.50 2002/01/24 10:04:50 ekohl Exp $
+/* $Id: ide.c,v 1.51 2002/02/08 02:57:08 chorns Exp $
*
* IDE.C - IDE Disk driver
* written by Rex Jolliff
{
NTSTATUS Status;
- DbgPrint("IDE Driver %s\n", VERSION);
+ DPRINT("IDE Driver %s\n", VERSION);
/* Export other driver entry points... */
DriverObject->DriverStartIo = IDEStartIo;
/* Get the Drive Identification Data */
if (!IDEGetDriveIdentification(CommandPort, DriveIdx, &DrvParms))
{
- DbgPrint("No ATA drive %d found on controller %d...\n",
+ DPRINT("No ATA drive %d found on controller %d...\n",
DriveIdx,
ControllerExtension->Number);
return(FALSE);
}
- DbgPrint("Found ATA drive %d on controller %d...\n",
+ DPRINT("Found ATA drive %d on controller %d...\n",
DriveIdx,
ControllerExtension->Number);
ControllerExtension);
}
- DPRINT1("DrvParms.BytesPerSector %ld\n",DrvParms.BytesPerSector);
+ DPRINT("DrvParms.BytesPerSector %ld\n",DrvParms.BytesPerSector);
/* Read partition table */
Status = IoReadPartitionTable(DiskDeviceObject,
/* Initialize the DPC object here */
IoInitializeDpcRequest(*DeviceObject, IDEDpcForIsr);
- DbgPrint("%wZ %luMB\n", &DeviceName, DeviceExtension->Size / 2048);
+ DPRINT("%wZ %luMB\n", &DeviceName, DeviceExtension->Size / 2048);
/* assign arc name */
swprintf(ArcNameBuffer,
{
if (Status & IDE_SR_ERR)
{
- DPRINT1("IDE_SR_ERR asserted!\n");
+ DPRINT("IDE_SR_ERR asserted!\n");
}
if ((Status & IDE_SR_DRQ) && !(Status & IDE_SR_ERR))
{
{
if (Status & IDE_SR_ERR)
{
- DPRINT1("IDE_SR_ERR asserted!\n");
+ DPRINT("IDE_SR_ERR asserted!\n");
}
if (Status & IDE_SR_DRQ)
{
DiskDeviceExtension->SectorsPerLogTrk;
Geometry->SectorsPerTrack = DiskDeviceExtension->SectorsPerLogTrk;
Geometry->BytesPerSector = DiskDeviceExtension->BytesPerSector;
-DPRINT1("DiskDeviceExtension->BytesPerSector %lu\n", DiskDeviceExtension->BytesPerSector);
+DPRINT("DiskDeviceExtension->BytesPerSector %lu\n", DiskDeviceExtension->BytesPerSector);
Irp->IoStatus.Status = STATUS_SUCCESS;
Irp->IoStatus.Information = sizeof(DISK_GEOMETRY);
}
-/* $Id: null.c,v 1.5 2001/06/12 12:36:58 ekohl Exp $
+/* $Id: null.c,v 1.6 2002/02/08 02:57:08 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
UNICODE_STRING DeviceName;
NTSTATUS Status;
- DbgPrint("Null Device Driver 0.0.2\n");
-
DeviceObject->Flags=0;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = NullDispatch;
DriverObject->MajorFunction[IRP_MJ_CREATE] = NullDispatch;
-/* $Id: parallel.c,v 1.6 2000/10/22 02:02:28 ekohl Exp $
+/* $Id: parallel.c,v 1.7 2002/02/08 02:57:08 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
UNICODE_STRING DeviceName;
NTSTATUS Status;
- DbgPrint("Parallel Port Driver 0.0.1\n");
+ DPRINT("Parallel Port Driver 0.0.1\n");
RtlInitUnicodeString (&DeviceName,
L"\\Device\\Parallel");
FILE_STANDARD_INFORMATION finfo;
DWORD err;
- DbgPrint("Ramdisk driver\n");
+ DPRINT("Ramdisk driver\n");
/* Export other driver entry points... */
DriverObject->MajorFunction[IRP_MJ_CREATE] = RamdrvDispatchOpenClose;
DPRINT( "Failed to read floppy\n" );
goto cleantbuff;
}
- DbgPrint( "RAMDRV: Read in %d bytes, decompressing now\n", iosb.Information );
+ DPRINT( "RAMDRV: Read in %d bytes, decompressing now\n", iosb.Information );
err = BZ2_bzBuffToBuffDecompress( devext->Buffer,
&dstlen,
tbuff,
1,
0 );
if( err == 0 )
- DbgPrint( "RAMDRV: Image Decompressed\n");
+ DPRINT( "RAMDRV: Image Decompressed\n");
else DbgPrint( "RAMDRV: Failed to decomparess image, error: %d\n", err );
ExFreePool( tbuff );
NtClose( file );
/*
* entry.c
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
* $Author: chorns $
- * $Date: 2001/09/23 22:14:10 $
+ * $Date: 2002/02/08 02:57:09 $
*
*/
// FIXME: full out DevInfo
devinfoVGA.hpalDefault = EngCreatePalette(PAL_INDEXED, 16, (PULONG)(VGApalette.PaletteEntry), 0, 0, 0);
-DbgPrint("Palette from Driver: %u\n", devinfoVGA.hpalDefault);
+DPRINT("Palette from Driver: %u\n", devinfoVGA.hpalDefault);
*DI = devinfoVGA;
-DbgPrint("Palette from Driver 2: %u and DI is %08x\n", DI->hpalDefault, DI);
+DPRINT("Palette from Driver 2: %u and DI is %08x\n", DI->hpalDefault, DI);
return PDev;
}
IN PVOID Context2)
{
VIDEO_HW_INITIALIZATION_DATA InitData;
-
- DbgPrint("VGA miniport Driver %s\n", VERSION);
VideoPortZeroMemory(&InitData, sizeof InitData);
-/* $Id: vidport.c,v 1.20 2001/06/26 12:51:00 ekohl Exp $
+/* $Id: vidport.c,v 1.21 2002/02/08 02:57:09 chorns Exp $
*
* VideoPort driver
* Written by Rex Jolliff
DriverEntry(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{
- DbgPrint("VideoPort Driver %s\n", VERSION);
return STATUS_SUCCESS;
}
DeviceNumber++;
}
while (Again);
-
+#if 0
/* Find a process handle for csrss */
Cid.UniqueProcess = (HANDLE)3;
Cid.UniqueThread = 0;
Csrss = NULL;
}
}
-
+#else
+ Csrss = NULL;
+#endif
/* FIXME: initialize timer routine for MP Driver */
if (HwInitializationData->HwTimer != NULL)
{
{
PVIDEO_REQUEST_PACKET vrp;
- DbgPrint("IO Control code: %u\n", Irp->Stack[0].Parameters.DeviceIoControl.IoControlCode);
-
// Translate the IRP to a VRP
vrp = ExAllocatePool(PagedPool, sizeof(VIDEO_REQUEST_PACKET));
vrp->StatusBlock = ExAllocatePool(PagedPool, sizeof(STATUS_BLOCK));
-/* $Id: create.c,v 1.37 2002/02/05 21:32:30 hbirr Exp $
+/* $Id: create.c,v 1.38 2002/02/08 02:57:09 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
PVFATFCB fcb;
PVFATCCB ccb;
- DbgPrint ("try related for %S\n", pRelativeFileName);
+ DPRINT ("try related for %S\n", pRelativeFileName);
ccb = pFileObject->FsContext2;
assert (ccb);
fcb = ccb->pFcb;
if (IrpContext->DeviceObject->Size == sizeof (DEVICE_OBJECT))
{
/* DeviceObject represents FileSystem instead of logical volume */
- DbgPrint ("FsdCreate called with file system\n");
+ DPRINT ("FsdCreate called with file system\n");
IrpContext->Irp->IoStatus.Information = FILE_OPENED;
Status = STATUS_SUCCESS;
goto ByeBye;
-/* $Id: iface.c,v 1.60 2001/11/07 02:21:19 phreak Exp $
+/* $Id: iface.c,v 1.61 2002/02/08 02:57:09 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return(Status);
}
- DPRINT1("Boot->SysType %.5s\n", Boot->SysType);
+ DPRINT("Boot->SysType %.5s\n", Boot->SysType);
if (strncmp(Boot->SysType, "FAT12", 5) == 0 ||
strncmp(Boot->SysType, "FAT16", 5) == 0 ||
strncmp(((struct _BootSector32 *) (Boot))->SysType, "FAT32", 5) == 0)
if (strncmp (DeviceExt->Boot->SysType, "FAT12", 5) == 0)
{
- DbgPrint("FAT12\n");
+ DPRINT("FAT12\n");
DeviceExt->FatType = FAT12;
}
else if (strncmp
(((struct _BootSector32 *) (DeviceExt->Boot))->SysType, "FAT32",
5) == 0)
{
- DbgPrint("FAT32\n");
+ DPRINT("FAT32\n");
DeviceExt->FatType = FAT32;
DeviceExt->rootDirectorySectors = DeviceExt->Boot->SectorsPerCluster;
DeviceExt->dataStart = DeviceExt->FATStart + DeviceExt->Boot->FATCount
}
else
{
- DbgPrint("FAT16\n");
+ DPRINT("FAT16\n");
DeviceExt->FatType = FAT16;
}
PVFATFCB Fcb = NULL;
PVFATCCB Ccb = NULL;
- DPRINT1("VfatMount(IrpContext %x)\n", IrpContext);
+ DPRINT("VfatMount(IrpContext %x)\n", IrpContext);
assert (IrpContext);
goto ByeBye;
}
-#if 1
+#ifdef DBG
DbgPrint("BytesPerSector: %d\n", DeviceExt->Boot->BytesPerSector);
DbgPrint("SectorsPerCluster: %d\n", DeviceExt->Boot->SectorsPerCluster);
DbgPrint("ReservedSectors: %d\n", DeviceExt->Boot->ReservedSectors);
NTSTATUS Status;
- DPRINT1("VfatFileSystemControl(IrpContext %x)\n", IrpContext);
+ DPRINT("VfatFileSystemControl(IrpContext %x)\n", IrpContext);
assert (IrpContext);
switch (IrpContext->MinorFunction)
{
case IRP_MN_USER_FS_REQUEST:
- DPRINT1("VFAT FSC: IRP_MN_USER_FS_REQUEST\n");
+ DPRINT("VFAT FSC: IRP_MN_USER_FS_REQUEST\n");
Status = STATUS_INVALID_DEVICE_REQUEST;
break;
break;
case IRP_MN_VERIFY_VOLUME:
- DPRINT1("VFAT FSC: IRP_MN_VERIFY_VOLUME\n");
+ DPRINT("VFAT FSC: IRP_MN_VERIFY_VOLUME\n");
Status = STATUS_INVALID_DEVICE_REQUEST;
break;
default:
- DPRINT1("VFAT FSC: MinorFunction %d\n", IrpContext->MinorFunction);
+ DPRINT("VFAT FSC: MinorFunction %d\n", IrpContext->MinorFunction);
Status = STATUS_INVALID_DEVICE_REQUEST;
break;
}
UNICODE_STRING DeviceName;
NTSTATUS Status;
- DbgPrint("VFAT 0.0.6\n");
+ DPRINT("VFAT 0.0.6\n");
VfatDriverObject = _DriverObject;
UNICODE_STRING DeviceName;
UNICODE_STRING SymlinkName;
- DbgPrint("Keyboard Driver 0.0.4\n");
+ DPRINT("Keyboard Driver 0.0.4\n");
DriverObject->MajorFunction[IRP_MJ_CREATE] = KbdDispatch;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = KbdDispatch;
UNICODE_STRING DeviceName;
UNICODE_STRING SymlinkName;
- DbgPrint("Mouse Class Driver 0.0.1\n");
-
DriverObject->MajorFunction[IRP_MJ_CREATE] = MouseClassDispatch;
// DriverObject->MajorFunction[IRP_MJ_CLOSE] = MouseClassDispatch;
// DriverObject->MajorFunction[IRP_MJ_READ] = MouseClassDispatch;
UNICODE_STRING SymlinkName;
PDEVICE_EXTENSION DeviceExtension;
- DbgPrint("PS/2 Keyboard & Mouse Driver 0.0.2\n");
-
if(detect_ps2_port() == TRUE)
{
- DbgPrint("PS/2 Mouse Detected\n");
} else
return STATUS_UNSUCCESSFUL;
* DriverObject = Pointer to driver object created by the system
*/
{
- DbgPrint("Unloading Ancillary Function Driver\n");
}
UNICODE_STRING DeviceName;
NTSTATUS Status;
- DbgPrint("Ancillary Function Driver\n");
-
RtlInitUnicodeString(&DeviceName, L"\\Device\\Afd");
Status = IoCreateDevice(DriverObject,
sizeof(DEVICE_EXTENSION),
-/* $Id: startup.c,v 1.35 2002/01/27 03:25:44 dwelch Exp $
+/* $Id: startup.c,v 1.36 2002/02/08 02:57:06 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
ZwTerminateProcess(NtCurrentProcess(),STATUS_UNSUCCESSFUL);
}
- DbgPrint("Transferring control to image at %x\n",EntryPoint);
Status = EntryPoint(Peb);
ZwTerminateProcess(NtCurrentProcess(),Status);
}
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: view.c,v 1.36 2002/01/26 21:21:02 dwelch Exp $
+/* $Id: view.c,v 1.37 2002/02/08 02:57:06 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
VOID
CcInitView(VOID)
{
- DPRINT1("CcInitView()\n");
+ DPRINT("CcInitView()\n");
InitializeListHead(&CacheSegmentListHead);
InitializeListHead(&DirtySegmentListHead);
InitializeListHead(&CacheSegmentLRUListHead);
-/* $Id: kdebug.c,v 1.32 2002/02/02 20:13:08 ekohl Exp $
+/* $Id: kdebug.c,v 1.33 2002/02/08 02:57:06 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
break;
case ScreenDebug:
- PrintString("\n Screen debugging enabled\n\n");
+ //PrintString("\n Screen debugging enabled\n\n");
break;
case BochsDebug:
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: main.c,v 1.112 2002/01/23 23:39:25 chorns Exp $
+/* $Id: main.c,v 1.113 2002/02/08 02:57:06 chorns Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/main.c
swprintf (ArcNameBuffer,
L"\\ArcName\\%S", ParamBuffer);
RtlInitUnicodeString (&ArcName, ArcNameBuffer);
- DPRINT1("Arc name: %wZ\n", &ArcName);
+ DPRINT("Arc name: %wZ\n", &ArcName);
/* free ParamBuffer */
ExFreePool (ParamBuffer);
{
RtlFreeUnicodeString (&BootPath);
RtlFreeUnicodeString (&DeviceName);
- DbgPrint("NtQuerySymbolicObject() failed (Status %x)\n",
+ CPRINT("NtQuerySymbolicObject() failed (Status %x)\n",
Status);
KeBugCheck (0x0);
RtlFreeUnicodeString (&DeviceName);
if (!NT_SUCCESS(Status))
{
- DbgPrint("IoCreateSymbolicLink() failed (Status %x)\n",
+ CPRINT("IoCreateSymbolicLink() failed (Status %x)\n",
Status);
KeBugCheck (0x0);
&ObjectAttributes);
if (!NT_SUCCESS(Status))
{
- DbgPrint("NtOpenSymbolicLinkObject() failed to open '\\SystemRoot' (Status %x)\n",
+ CPRINT("NtOpenSymbolicLinkObject() failed to open '\\SystemRoot' (Status %x)\n",
Status);
KeBugCheck (0x0);
}
{
RtlFreeUnicodeString (&BootPath);
RtlFreeUnicodeString (&ArcDeviceName);
- DbgPrint("NtOpenSymbolicLinkObject() failed (Status %x)\n",
+ CPRINT("NtOpenSymbolicLinkObject() failed (Status %x)\n",
Status);
KeBugCheck (0x0);
{
RtlFreeUnicodeString (&BootPath);
RtlFreeUnicodeString (&ArcDeviceName);
- DbgPrint("NtQuerySymbolicObject() failed (Status %x)\n",
+ CPRINT("NtQuerySymbolicObject() failed (Status %x)\n",
Status);
KeBugCheck (0x0);
/*
* Initalize services loaded at boot time
*/
- DPRINT1("%d files loaded\n",KeLoaderBlock.ModsCount);
+ DPRINT("%d files loaded\n",KeLoaderBlock.ModsCount);
for (i=0; i < KeLoaderBlock.ModsCount; i++)
{
CPRINT("Module: '%s' at %08lx, length 0x%08lx\n",
FileHandle);
if (!NT_SUCCESS(Status))
{
- DbgPrint("ZwCreateSection failed (Status %x)\n", Status);
+ DPRINT("ZwCreateSection failed (Status %x)\n", Status);
ZwClose(FileHandle);
return(Status);
}
NULL);
if (!NT_SUCCESS(Status))
{
- DbgPrint("Could not create process\n");
+ DPRINT("Could not create process\n");
return Status;
}
NULL);
if (!NT_SUCCESS(Status))
{
- DbgPrint("ObReferenceObjectByProcess() failed (Status %x)\n", Status);
+ DPRINT("ObReferenceObjectByProcess() failed (Status %x)\n", Status);
return(Status);
}
-/* $Id: rtl.c,v 1.12 2001/02/10 22:51:09 dwelch Exp $
+/* $Id: rtl.c,v 1.13 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return STATUS_SUCCESS;
}
}
- DbgPrint("LdrGetProcedureAddress: Can't resolve symbol '%Z'\n", Name);
+ CPRINT("LdrGetProcedureAddress: Can't resolve symbol '%Z'\n", Name);
}
else
{
(ULONG)AddressPtr[Ordinal - ExportDir->Base]);
return STATUS_SUCCESS;
}
- DbgPrint("LdrGetProcedureAddress: Can't resolve symbol @%d\n",
+ CPRINT("LdrGetProcedureAddress: Can't resolve symbol @%d\n",
Ordinal);
}
PAGE_READWRITE);
if (!NT_SUCCESS(Status))
{
- DbgPrint("Image map view of section failed (Status %x)", Status);
+ CPRINT("Image map view of section failed (Status %x)", Status);
return(Status);
}
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: pagefile.c,v 1.16 2002/01/27 03:25:44 dwelch Exp $
+/* $Id: pagefile.c,v 1.17 2002/02/08 02:57:07 chorns Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/pagefile.c
#include <internal/mm.h>
#include <napi/core.h>
+#define NDEBUG
#include <internal/debug.h>
/* TYPES *********************************************************************/
PVOID Buffer;
LARGE_INTEGER ByteOffset;
- DPRINT1("NtCreatePagingFile(PageFileName %wZ, MinimumSize %d)\n",
+ DPRINT("NtCreatePagingFile(PageFileName %wZ, MinimumSize %d)\n",
PageFileName, MinimumSize);
InitializeObjectAttributes(&ObjectAttributes,
-/* $Id: object.c,v 1.40 2001/08/30 20:38:20 dwelch Exp $
+/* $Id: object.c,v 1.41 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
if (Header->RefCount < 0)
{
- DbgPrint("Object %x/%x has invalid reference count (%d)\n",
+ CPRINT("Object %x/%x has invalid reference count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->RefCount);
KeBugCheck(0);
}
if (Header->HandleCount < 0)
{
- DbgPrint("Object %x/%x has invalid handle count (%d)\n",
+ CPRINT("Object %x/%x has invalid handle count (%d)\n",
Header, HEADER_TO_BODY(Header), Header->HandleCount);
KeBugCheck(0);
}
-/* $Id: create.c,v 1.42 2002/01/03 17:59:09 ekohl Exp $
+/* $Id: create.c,v 1.43 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
&ResultLength);
if (!NT_SUCCESS(Status))
{
- DbgPrint("NtQueryVirtualMemory (Status %x)\n", Status);
+ CPRINT("NtQueryVirtualMemory (Status %x)\n", Status);
KeBugCheck(0);
}
/* FIXME: Race between this and the above check */
-/* $Id: process.c,v 1.76 2002/01/04 22:35:26 hbirr Exp $
+/* $Id: process.c,v 1.77 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
KernelMode);
if (!NT_SUCCESS(Status))
{
- DbgPrint("PsGetNextProcess(): ObReferenceObjectByPointer failed\n");
+ CPRINT("PsGetNextProcess(): ObReferenceObjectByPointer failed\n");
KeBugCheck(0);
}
ObDereferenceObject(OldProcess);
-/* $Id: thread.c,v 1.87 2002/01/15 02:51:32 dwelch Exp $
+/* $Id: thread.c,v 1.88 2002/02/08 02:57:07 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
return;
}
}
- DbgPrint("CRITICAL: No threads are runnable\n");
+ CPRINT("CRITICAL: No threads are runnable\n");
KeBugCheck(0);
}
IdleThreads[Id] = IdleThread;
NtClose(IdleThreadHandle);
- DbgPrint("IdleThread for Processor %d has PID %d\n",
+ DPRINT("IdleThread for Processor %d has PID %d\n",
Id, IdleThread->Cid.UniqueThread);
}
TrapFrame = KeGetCurrentThread()->TrapFrame;
if (TrapFrame == NULL)
{
- DbgPrint("NtContinue called but TrapFrame was NULL\n");
+ CPRINT("NtContinue called but TrapFrame was NULL\n");
KeBugCheck(0);
}
KeContextToTrapFrame(Context, TrapFrame);
-/* $Id: conio.c,v 1.27 2001/12/02 23:34:43 dwelch Exp $
+/* $Id: conio.c,v 1.28 2002/02/08 02:57:10 chorns Exp $
*
* reactos/subsys/csrss/api/conio.c
*
#include "api.h"
#include <ntdll/rtl.h>
#include <ddk/ntddblue.h>
+
+#define NDEBUG
#include <debug.h>
#define LOCK RtlEnterCriticalSection(&ActiveConsoleLock)
VOID STDCALL CsrDeleteConsole( PCSRSS_CONSOLE Console )
{
ConsoleInput *Event;
- DPRINT1( "CsrDeleteConsole\n" );
+ DPRINT( "CsrDeleteConsole\n" );
LOCK;
/* Drain input event queue */
while( Console->InputEvents.Flink != &Console->InputEvents )
IO_STATUS_BLOCK Iosb;
CONSOLE_SCREEN_BUFFER_INFO ScrInfo;
- DbgPrint("CSR: CsrInitConsoleSupport()\n");
+ DPRINT("CSR: CsrInitConsoleSupport()\n");
RtlInitUnicodeString(&DeviceName, L"\\??\\BlueScreen");
InitializeObjectAttributes(&ObjectAttributes,
-/* $Id: csrss.c,v 1.9 2001/08/14 12:57:16 ea Exp $
+/* $Id: csrss.c,v 1.10 2002/02/08 02:57:10 chorns Exp $
*
* csrss.c - Client/Server Runtime subsystem
*
HANDLE CsrssInitEvent;
UNICODE_STRING UnicodeString;
NTSTATUS Status;
-
- DisplayString(L"Client/Server Runtime Subsystem\n");
ProcParams = RtlNormalizeProcessParams (Peb->ProcessParameters);
}
if (CsrServerInitialization (argc, argv) == TRUE)
{
- DisplayString( L"CSR: Subsystem initialized.\n" );
NtSetEvent(CsrssInitEvent,
NULL);
-/* $Id: init.c,v 1.29 2001/12/31 19:06:49 dwelch Exp $
+/* $Id: init.c,v 1.30 2002/02/08 02:57:10 chorns Exp $
*
* init.c - Session Manager initialization
*
RtlInitUnicodeString(&DeviceName,
LinkPtr->DeviceName);
- PrintString("SM: Linking %wZ --> %wZ\n",
- &LinkName,
- &DeviceName);
#if 0
/* check if target device exists (can be opened) */
InitializeObjectAttributes(&ObjectAttributes,
/*
* Start the Win32 subsystem (csrss.exe)
*/
- DisplayString (L"SM: Running csrss.exe\n");
/* initialize executable path */
wcscpy(UnicodeBuffer, L"\\??\\");
return FALSE;
}
- DbgPrint("SM: Waiting for csrss\n");
NtWaitForSingleObject(CsrssInitEvent,
FALSE,
NULL);
- DbgPrint("SM: Finished waiting for csrss\n");
Children[CHILD_CSRSS] = ProcessInfo.ProcessHandle;
/*
* Start the logon process (winlogon.exe)
*/
- DisplayString(L"SM: Running winlogon.exe\n");
/* initialize executable path */
wcscpy(UnicodeBuffer, L"\\??\\");
-/* $Id: smapi.c,v 1.4 2000/04/03 21:54:42 dwelch Exp $
+/* $Id: smapi.c,v 1.5 2002/02/08 02:57:10 chorns Exp $
*
* Reactos Session Manager
*
#include "smss.h"
-//#define NDEBUG
+#define NDEBUG
VOID STDCALL
-/* $Id: smss.c,v 1.8 2000/10/09 00:18:00 ekohl Exp $
+/* $Id: smss.c,v 1.9 2002/02/08 02:57:10 chorns Exp $
*
* smss.c - Session Manager
*
{
HANDLE Children[2]; /* csrss, winlogon */
- DisplayString( L"Session Manager\n" );
-
if (TRUE == InitSessionManager(Children))
{
NTSTATUS wws;
-
- DisplayString( L"SM: Waiting for process termination...\n" );
#if 0
wws = NtWaitForMultipleObjects (
-/* $Id: services.c,v 1.4 2001/10/21 19:09:06 chorns Exp $
+/* $Id: services.c,v 1.5 2002/02/08 02:57:05 chorns Exp $
*
* service control manager
*
void PrintString (char* fmt,...)
{
+#ifdef DBG
char buffer[512];
va_list ap;
va_end(ap);
OutputDebugStringA(buffer);
+#endif
}
-/* $Id: shell.c,v 1.7 2001/07/30 11:50:44 ea Exp $
+/* $Id: shell.c,v 1.8 2002/02/08 02:57:06 chorns Exp $
*
* PROJECT : ReactOS Operating System
* DESCRIPTION: ReactOS' Native Shell
InputHandle = GetStdHandle(STD_INPUT_HANDLE);
OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
- debug_printf("Shell Starting...\n");
-
ParseCommandLine ();
for(;;)
-/* $Id: winlogon.c,v 1.7 2001/06/22 02:10:11 phreak Exp $
+/* $Id: winlogon.c,v 1.8 2002/02/08 02:57:06 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
#include <wchar.h>
+#define NDEBUG
+#include <debug.h>
/* GLOBALS ******************************************************************/
CHAR CommandLine[MAX_PATH];
DWORD Count;
- /* Start the service control manager (services.exe) */
- PrintString("WL: Running services.exe\n");
-
+ /* Start the service control manager (services.exe) */
GetSystemDirectory(CommandLine, MAX_PATH);
strcat(CommandLine, "\\services.exe");
-
- PrintString("WL: %s\n", CommandLine);
-
+
StartupInfo.cb = sizeof(StartupInfo);
StartupInfo.lpReserved = NULL;
StartupInfo.lpDesktop = NULL;
}
/* wait for event creation (by SCM) for max. 20 seconds */
- PrintString("WL: Waiting for services\n");
for (Count = 0; Count < 20; Count++)
{
Sleep(1000);
"SvcctrlStartEvent_A3725DX");
if (ServicesInitEvent != NULL)
{
- PrintString("WL: Opened start event\n");
break;
}
- PrintString("WL: Waiting for %ld seconds\n", Count+1);
}
/* wait for event signalization */
- DbgPrint("WL: Waiting for services initialization\n");
WaitForSingleObject(ServicesInitEvent, INFINITE);
CloseHandle(ServicesInitEvent);
-
- DbgPrint("WL: Finished waiting for services\n");
-
+
return TRUE;
}
}
/* Start the local security authority subsystem (lsass.exe) */
- DbgPrint("WL: Running lsass.exe\n");
GetSystemDirectory(CommandLine, MAX_PATH);
strcat(CommandLine, "\\lsass.exe");
return(FALSE);
}
- DbgPrint("WL: Waiting for lsass\n");
+ DPRINT("WL: Waiting for lsass\n");
WaitForSingleObject(LsassInitEvent, INFINITE);
CloseHandle(LsassInitEvent);
- DbgPrint("WL: Finished waiting for lsass\n");
return(TRUE);
}
CHAR CommandLine[MAX_PATH];
CHAR CurrentDirectory[MAX_PATH];
- DbgPrint("WL: Running shell.exe\n");
-
GetSystemDirectory(CommandLine, MAX_PATH);
strcat(CommandLine, "\\shell.exe");
/* Main loop */
for (;;)
{
+#if 0
/* Display login prompt */
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
LoginPrompt,
i++;
} while (Password[i - 1] != '\n');
Password[i - 1] =0;
-
+#endif
DoLoginUser(LoginName, Password);
}
-/* $Id: dllmain.c,v 1.23 2002/01/27 01:11:24 dwelch Exp $
+/* $Id: dllmain.c,v 1.24 2002/02/08 02:57:10 chorns Exp $
*
* Entry Point for win32k.sys
*/
NTSTATUS Status;
BOOLEAN Result;
- DbgPrint("Win32 kernel mode driver\n");
-
/*
* Register user mode call interface
* (system service table index = 1)
return STATUS_UNSUCCESSFUL;
}
- DbgPrint("System services added successfully!\n");
-
/*
* Register our per-process and per-thread structures.
*/
STDCALL
W32kInitialize (VOID)
{
- DbgPrint("W32kInitialize\n");
-
InitGdiObjectHandleTable ();
// FIXME: Retrieve name from registry