Skip to content

Commit 1af29a6

Browse files
committed
[CMBATT] Inform when a discovered battery doesn't support the _BTP trip-point method (reactos#8384)
1 parent b73159f commit 1af29a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/acpi/cmbatt/cmbpnp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,11 @@ CmBattAddBattery(IN PDRIVER_OBJECT DriverObject,
680680
FdoExtension->InterruptTime = KeQueryInterruptTime();
681681
FdoExtension->TripPointSet = CmBattSetTripPoint(FdoExtension, 0) !=
682682
STATUS_OBJECT_NAME_NOT_FOUND;
683+
if (!FdoExtension->TripPointSet)
684+
{
685+
DbgPrint("**** Battery ID 0x%x (PDO: 0x%p, FDO: 0x%p) doesn't support _BTP method\n",
686+
FdoExtension->DeviceId, DeviceObject, FdoDeviceObject);
687+
}
683688

684689
/* Setup the battery miniport information structure */
685690
RtlZeroMemory(&MiniportInfo, sizeof(MiniportInfo));

0 commit comments

Comments
 (0)