From b12ab486d83905275b906a800f3f8d5394df23be Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 7 Aug 2023 22:08:05 +0900 Subject: [PATCH] [MUP] Mute DPRINT1's that slow down shared folder accesses (#5545) Logging was too heavy. Made some DPRINT1's DPRINT's. We could make it 3 times faster. CORE-19105 --- drivers/filesystems/mup/mup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/filesystems/mup/mup.c b/drivers/filesystems/mup/mup.c index 601d0f33896..fd63b9229ad 100644 --- a/drivers/filesystems/mup/mup.c +++ b/drivers/filesystems/mup/mup.c @@ -1306,7 +1306,7 @@ MupRerouteOpen(PFILE_OBJECT FileObject, PWSTR FullPath; ULONG TotalLength; - DPRINT1("Rerouting %wZ with %wZ\n", &FileObject->FileName, &UncProvider->DeviceName); + DPRINT("Rerouting %wZ with %wZ\n", &FileObject->FileName, &UncProvider->DeviceName); /* Get the full path name (device name first, and requested file name appended) */ TotalLength = UncProvider->DeviceName.Length + FileObject->FileName.Length; @@ -1778,7 +1778,7 @@ QueryPathCompletionRoutine(PDEVICE_OBJECT DeviceObject, Prefix->ExternalAlloc = TRUE; /* Insert the accepted prefix in the table of known prefixes */ - DPRINT1("%wZ accepted %wZ\n", &Prefix->UncProvider->DeviceName, &Prefix->AcceptedPrefix); + DPRINT("%wZ accepted %wZ\n", &Prefix->UncProvider->DeviceName, &Prefix->AcceptedPrefix); ExAcquireResourceExclusiveLite(&MupPrefixTableLock, TRUE); if (RtlInsertUnicodePrefix(&MupPrefixTable, &Prefix->AcceptedPrefix, &Prefix->PrefixTableEntry)) { @@ -1897,7 +1897,7 @@ CreateRedirectedFile(PIRP Irp, return STATUS_INVALID_DEVICE_REQUEST; } - DPRINT1("Request for opening: %wZ\n", &FileObject->FileName); + DPRINT("Request for opening: %wZ\n", &FileObject->FileName); Referenced = FALSE; BreakOnFirst = TRUE; @@ -2104,7 +2104,7 @@ CreateRedirectedFile(PIRP Irp, ExReleaseResourceLite(&MasterQueryContext->QueryPathListLock); /* Query the provider !*/ - DPRINT1("Requesting UNC provider: %wZ\n", &UncProvider->DeviceName); + DPRINT("Requesting UNC provider: %wZ\n", &UncProvider->DeviceName); DPRINT("Calling: %wZ\n", &UncProvider->DeviceObject->DriverObject->DriverName); Status = IoCallDriver(UncProvider->DeviceObject, QueryIrp); }