https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1a6bd2704af03694fb6d85...
commit 1a6bd2704af03694fb6d857b34481dd43ad39123 Author: Victor Perevertkin victor.perevertkin@reactos.org AuthorDate: Tue Dec 28 04:20:37 2021 +0300 Commit: Victor Perevertkin victor.perevertkin@reactos.org CommitDate: Tue Dec 28 04:23:51 2021 +0300
[SCSIPORT] Reduce and improve debug printing --- drivers/storage/port/scsiport/fdo.c | 6 ++---- drivers/storage/port/scsiport/scsiport.c | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/storage/port/scsiport/fdo.c b/drivers/storage/port/scsiport/fdo.c index 8972c6f1aea..168c985c105 100644 --- a/drivers/storage/port/scsiport/fdo.c +++ b/drivers/storage/port/scsiport/fdo.c @@ -324,13 +324,11 @@ FdoScanAdapter( /* Clear the "in scan" flag */ lunExt->Flags &= ~SCSI_PORT_SCAN_IN_PROGRESS;
- DPRINT("FdoScanAdapter(): Found device of type %d at bus %d tid %d lun %d\n", - InquiryData->DeviceType, pathId, targetId, lun); + DPRINT1("Found device of type %d at controller %d bus %d tid %d lun %d, PDO: %p\n", + InquiryData->DeviceType, PortExtension->PortNumber, pathId, targetId, lun, lunPDO);
InsertTailList(¤tBus->LunsListHead, &lunExt->LunEntry);
- DPRINT1("SCSIPORT: created lun device: %p Status: %x\n", lunPDO, status); - totalLUNs++; currentBus->LogicalUnitsCount++; targetFound = TRUE; diff --git a/drivers/storage/port/scsiport/scsiport.c b/drivers/storage/port/scsiport/scsiport.c index 8e6e3e3c198..9b7f7f9d6df 100644 --- a/drivers/storage/port/scsiport/scsiport.c +++ b/drivers/storage/port/scsiport/scsiport.c @@ -981,8 +981,6 @@ ScsiPortInitialize( break; }
- DPRINT1("Created device: %wZ (%p)\n", &DeviceName, PortDeviceObject); - /* Set the buffering strategy here... */ PortDeviceObject->Flags |= DO_DIRECT_IO; PortDeviceObject->AlignmentRequirement = FILE_WORD_ALIGNMENT; /* FIXME: Is this really needed? */ @@ -2494,7 +2492,7 @@ TryNextAd: else { /* Info was not found, exit */ - DPRINT1("ZwOpenKey() failed with Status=0x%08X\n", Status); + DPRINT("ZwOpenKey() failed with Status=0x%08X\n", Status); return STATUS_DEVICE_DOES_NOT_EXIST; } }