Disabled debug messages.

svn path=/trunk/; revision=4617
This commit is contained in:
Eric Kohl 2003-04-29 19:49:17 +00:00
parent 23f8e2083b
commit e678b87637

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -155,13 +155,6 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
InitData.ClassCreateClose = NULL; InitData.ClassCreateClose = NULL;
InitData.ClassStartIo = NULL; InitData.ClassStartIo = NULL;
ScsiClassInitialize(DriverObject,
RegistryPath,
&InitData);
DPRINT1("*** System stopped ***\n");
for(;;);
return(ScsiClassInitialize(DriverObject, return(ScsiClassInitialize(DriverObject,
RegistryPath, RegistryPath,
&InitData)); &InitData));
@ -658,19 +651,19 @@ DiskClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
if (!ScsiDiskCalcMbrCheckSum(DiskDeviceExtension, if (!ScsiDiskCalcMbrCheckSum(DiskDeviceExtension,
&DiskData->MbrCheckSum)) &DiskData->MbrCheckSum))
{ {
DPRINT1("MBR checksum calculation failed for disk %lu\n", DPRINT("MBR checksum calculation failed for disk %lu\n",
DiskDeviceExtension->DeviceNumber); DiskDeviceExtension->DeviceNumber);
} }
else else
{ {
DPRINT1("MBR checksum for disk %lu is %lx\n", DPRINT("MBR checksum for disk %lu is %lx\n",
DiskDeviceExtension->DeviceNumber, DiskDeviceExtension->DeviceNumber,
DiskData->MbrCheckSum); DiskData->MbrCheckSum);
} }
} }
else else
{ {
DPRINT1("Signature on disk %lu is %lx\n", DPRINT("Signature on disk %lu is %lx\n",
DiskDeviceExtension->DeviceNumber, DiskDeviceExtension->DeviceNumber,
DiskData->Signature); DiskData->Signature);
} }
@ -1658,7 +1651,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
&ObjectAttributes); &ObjectAttributes);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("ZwOpenKey() failed (Status %lx)\n", Status); DPRINT("ZwOpenKey() failed (Status %lx)\n", Status);
return; return;
} }
@ -1684,7 +1677,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
&Length); &Length);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("ZwQueryValueKey() failed (Status %lx)\n", Status); DPRINT("ZwQueryValueKey() failed (Status %lx)\n", Status);
ExFreePool(ValueBuffer); ExFreePool(ValueBuffer);
ZwClose(SystemKey); ZwClose(SystemKey);
return; return;
@ -1706,14 +1699,14 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
ZwClose(SystemKey); ZwClose(SystemKey);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
DPRINT1("ZwQueryValueKey() failed (Status %lx)\n", Status); DPRINT("ZwQueryValueKey() failed (Status %lx)\n", Status);
ExFreePool(ValueBuffer); ExFreePool(ValueBuffer);
return; return;
} }
if (!ScsiDiskSearchForDisk(DeviceExtension, BusKey, &DiskNumber)) if (!ScsiDiskSearchForDisk(DeviceExtension, BusKey, &DiskNumber))
{ {
DPRINT1("ScsiDiskSearchForDisk() failed\n"); DPRINT("ScsiDiskSearchForDisk() failed\n");
ZwClose(BusKey); ZwClose(BusKey);
ExFreePool(ValueBuffer); ExFreePool(ValueBuffer);
return; return;
@ -1742,7 +1735,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
TracksPerCylinder = DriveParameters[DiskNumber].MaxHeads +1; TracksPerCylinder = DriveParameters[DiskNumber].MaxHeads +1;
SectorsPerTrack = DriveParameters[DiskNumber].SectorsPerTrack; SectorsPerTrack = DriveParameters[DiskNumber].SectorsPerTrack;
DPRINT1("BIOS geometry: %lu Cylinders %hu Heads %hu Sectors\n", DPRINT("BIOS geometry: %lu Cylinders %hu Heads %hu Sectors\n",
Cylinders, Cylinders,
TracksPerCylinder, TracksPerCylinder,
SectorsPerTrack); SectorsPerTrack);
@ -1763,7 +1756,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
Cylinders = Sectors / Length; Cylinders = Sectors / Length;
DPRINT1("Logical geometry: %lu Cylinders %hu Heads %hu Sectors\n", DPRINT("Logical geometry: %lu Cylinders %hu Heads %hu Sectors\n",
Cylinders, Cylinders,
TracksPerCylinder, TracksPerCylinder,
SectorsPerTrack); SectorsPerTrack);