From e678b87637541decaecb5342753273497b408ce4 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 29 Apr 2003 19:49:17 +0000 Subject: [PATCH] Disabled debug messages. svn path=/trunk/; revision=4617 --- reactos/drivers/storage/disk/disk.c | 49 +++++++++++++---------------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/reactos/drivers/storage/disk/disk.c b/reactos/drivers/storage/disk/disk.c index 26afe7363b2..83516f56c3e 100644 --- a/reactos/drivers/storage/disk/disk.c +++ b/reactos/drivers/storage/disk/disk.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: disk.c,v 1.28 2003/04/29 18:06:26 ekohl Exp $ +/* $Id: disk.c,v 1.29 2003/04/29 19:49:17 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -155,13 +155,6 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject, InitData.ClassCreateClose = NULL; InitData.ClassStartIo = NULL; - ScsiClassInitialize(DriverObject, - RegistryPath, - &InitData); - - DPRINT1("*** System stopped ***\n"); - for(;;); - return(ScsiClassInitialize(DriverObject, RegistryPath, &InitData)); @@ -658,21 +651,21 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject, if (!ScsiDiskCalcMbrCheckSum(DiskDeviceExtension, &DiskData->MbrCheckSum)) { - DPRINT1("MBR checksum calculation failed for disk %lu\n", - DiskDeviceExtension->DeviceNumber); + DPRINT("MBR checksum calculation failed for disk %lu\n", + DiskDeviceExtension->DeviceNumber); } else { - DPRINT1("MBR checksum for disk %lu is %lx\n", - DiskDeviceExtension->DeviceNumber, - DiskData->MbrCheckSum); + DPRINT("MBR checksum for disk %lu is %lx\n", + DiskDeviceExtension->DeviceNumber, + DiskData->MbrCheckSum); } } else { - DPRINT1("Signature on disk %lu is %lx\n", - DiskDeviceExtension->DeviceNumber, - DiskData->Signature); + DPRINT("Signature on disk %lu is %lx\n", + DiskDeviceExtension->DeviceNumber, + DiskData->Signature); } /* Update disk geometry if disk is visible to the BIOS */ @@ -1658,7 +1651,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension) &ObjectAttributes); if (!NT_SUCCESS(Status)) { - DPRINT1("ZwOpenKey() failed (Status %lx)\n", Status); + DPRINT("ZwOpenKey() failed (Status %lx)\n", Status); return; } @@ -1684,7 +1677,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension) &Length); if (!NT_SUCCESS(Status)) { - DPRINT1("ZwQueryValueKey() failed (Status %lx)\n", Status); + DPRINT("ZwQueryValueKey() failed (Status %lx)\n", Status); ExFreePool(ValueBuffer); ZwClose(SystemKey); return; @@ -1706,14 +1699,14 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension) ZwClose(SystemKey); if (!NT_SUCCESS(Status)) { - DPRINT1("ZwQueryValueKey() failed (Status %lx)\n", Status); + DPRINT("ZwQueryValueKey() failed (Status %lx)\n", Status); ExFreePool(ValueBuffer); return; } if (!ScsiDiskSearchForDisk(DeviceExtension, BusKey, &DiskNumber)) { - DPRINT1("ScsiDiskSearchForDisk() failed\n"); + DPRINT("ScsiDiskSearchForDisk() failed\n"); ZwClose(BusKey); ExFreePool(ValueBuffer); return; @@ -1742,10 +1735,10 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension) TracksPerCylinder = DriveParameters[DiskNumber].MaxHeads +1; SectorsPerTrack = DriveParameters[DiskNumber].SectorsPerTrack; - DPRINT1("BIOS geometry: %lu Cylinders %hu Heads %hu Sectors\n", - Cylinders, - TracksPerCylinder, - SectorsPerTrack); + DPRINT("BIOS geometry: %lu Cylinders %hu Heads %hu Sectors\n", + Cylinders, + TracksPerCylinder, + SectorsPerTrack); Sectors = (ULONG) (DeviceExtension->PartitionLength.QuadPart >> DeviceExtension->SectorShift); @@ -1763,10 +1756,10 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension) Cylinders = Sectors / Length; - DPRINT1("Logical geometry: %lu Cylinders %hu Heads %hu Sectors\n", - Cylinders, - TracksPerCylinder, - SectorsPerTrack); + DPRINT("Logical geometry: %lu Cylinders %hu Heads %hu Sectors\n", + Cylinders, + TracksPerCylinder, + SectorsPerTrack); /* Update the disk geometry */ DeviceExtension->DiskGeometry->SectorsPerTrack = SectorsPerTrack;