Skip to content

Commit

Permalink
ooga
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 12, 2024
1 parent 84fa53c commit b50d889
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/bus/acpi/cmbatt/cmbatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ CmBattVerifyStaticInfo(PCMBATT_DEVICE_EXTENSION DeviceExtension,

if (BifData.PowerUnit == 1)
{
DPRINT1("FIXME: need to convert mAh into mWh\n");
// DPRINT1("FIXME: need to convert mAh into mWh\n");
Info->DesignedCapacity = BATTERY_UNKNOWN_CAPACITY;
Info->FullChargedCapacity = BATTERY_UNKNOWN_CAPACITY;
Info->DefaultAlert1 = BATTERY_UNKNOWN_CAPACITY;
Expand Down
11 changes: 6 additions & 5 deletions ntoskrnl/po/batt.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ PopBatteryIrpCompletion(
/* Copy the battery tag into the kernel structure */
Tag = *(PULONG)Irp->AssociatedIrp.SystemBuffer;
DPRINT1("THE BATTERY TAG ISSSSS %lu\n", Tag);
DPRINT1("THE BATTERY TAG ISSSSS %lu\n", Tag);
PopBattery->BatteryTag = Tag;

/* The system now has a composite battery, take away the "no battery" flag */
Expand Down Expand Up @@ -501,7 +502,7 @@ PopCompositeBatteryHandler(
(PopBattery->Flags & POP_CB_PENDING_NEW_BATTERY) ||
(PopBattery->Flags & POP_CB_RETRY_IO_REQUEST))
{
DPRINT1("Connect battery in progress, requesting battery tag (next mode -- POP_CB_READ_TAG_MODE)\n");
// DPRINT1("Connect battery in progress, requesting battery tag (next mode -- POP_CB_READ_TAG_MODE)\n");

/* Setup the necessary lengths for the battery information to query */
InputBufferLength = sizeof(ULONG);
Expand All @@ -527,7 +528,7 @@ PopCompositeBatteryHandler(
*/
if (PopBattery->PreviousMode == POP_CB_READ_TAG_MODE)
{
DPRINT1("Querying battery information in progress (next mode -- POP_CB_QUERY_INFORMATION_MODE)\n");
// DPRINT1("Querying battery information in progress (next mode -- POP_CB_QUERY_INFORMATION_MODE)\n");

/* The battery should have already processed this request */
POP_ASSERT_NO_BATTERY_REQUEST_MODE();
Expand Down Expand Up @@ -563,7 +564,7 @@ PopCompositeBatteryHandler(
* We have gotten the required battery information in order
* to read battery status.
*/
DPRINT1("Querying battery status in progress (next mode -- POP_CB_QUERY_STATUS_MODE)\n");
// DPRINT1("Querying battery status in progress (next mode -- POP_CB_QUERY_STATUS_MODE)\n");

/* The battery should have already processed this request */
POP_ASSERT_NO_BATTERY_REQUEST_MODE();
Expand Down Expand Up @@ -601,7 +602,7 @@ PopCompositeBatteryHandler(
* is to query the estimated time of the battery after a successful
* read of the battery status.
*/
DPRINT1("Querying battery estimation time in progress (next mode -- POP_CB_QUERY_BATTERY_ESTIMATION_TIME_MODE)\n");
// DPRINT1("Querying battery estimation time in progress (next mode -- POP_CB_QUERY_BATTERY_ESTIMATION_TIME_MODE)\n");

/* The battery should have already processed this request */
POP_ASSERT_NO_BATTERY_REQUEST_MODE();
Expand Down Expand Up @@ -630,7 +631,7 @@ PopCompositeBatteryHandler(
* We have finally queried the battery estimation time, now we
* have to repeat the operation by reading the battery status again.
*/
DPRINT1("Battery estimation time queried, rolling back to read battery status (next mode -- POP_CB_QUERY_STATUS_MODE)\n");
// DPRINT1("Battery estimation time queried, rolling back to read battery status (next mode -- POP_CB_QUERY_STATUS_MODE)\n");

/* The battery should have already processed this request */
POP_ASSERT_NO_BATTERY_REQUEST_MODE();
Expand Down

0 comments on commit b50d889

Please sign in to comment.