[SCSIPORT] Reduce and improve debug printing

This commit is contained in:
Victor Perevertkin 2021-12-28 04:20:37 +03:00
parent ba117350eb
commit 1a6bd2704a
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
2 changed files with 3 additions and 7 deletions

View file

@ -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(&currentBus->LunsListHead, &lunExt->LunEntry);
DPRINT1("SCSIPORT: created lun device: %p Status: %x\n", lunPDO, status);
totalLUNs++;
currentBus->LogicalUnitsCount++;
targetFound = TRUE;

View file

@ -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;
}
}