https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0be4e4aa6d831f00326a1f5027229079978e66f9

commit 0be4e4aa6d831f00326a1f5027229079978e66f9
Author:     Hervé Poussineau <hpous...@reactos.org>
AuthorDate: Thu Feb 1 19:05:52 2024 +0100
Commit:     Hervé Poussineau <hpous...@reactos.org>
CommitDate: Mon Feb 5 18:04:01 2024 +0100

    [CMBATT] Correctly print UNICODE_STRING
---
 drivers/bus/acpi/cmbatt/cmbatt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/acpi/cmbatt/cmbatt.c b/drivers/bus/acpi/cmbatt/cmbatt.c
index 2da8f5d6f05..9d3a459525e 100644
--- a/drivers/bus/acpi/cmbatt/cmbatt.c
+++ b/drivers/bus/acpi/cmbatt/cmbatt.c
@@ -1267,9 +1267,9 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
     /* Buffer allocated, copy the string */
     RtlCopyUnicodeString(&GlobalRegistryPath, RegistryPath);
     if (CmBattDebug & CMBATT_GENERIC_INFO)
-        DbgPrint("CmBatt DriverEntry - Obj (%08x) Path \"%ws\"\n",
+        DbgPrint("CmBatt DriverEntry - Obj (%08x) Path \"%wZ\"\n",
                  DriverObject,
-                 RegistryPath->Buffer);
+                 RegistryPath);
 
     /* Setup the major dispatchers */
     DriverObject->MajorFunction[IRP_MJ_CREATE] = CmBattOpenClose;

Reply via email to