FreeBSD Bugzilla – Attachment 55345 Details for
Bug 83672
acpiconf with remaining battery life and time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 780 bytes, created by
Rudolf Čejka
on 2005-07-18 15:40:33 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rudolf Čejka
Created:
2005-07-18 15:40:33 UTC
Size:
780 bytes
patch
obsolete
>--- usr.sbin/acpi/acpiconf/acpiconf.c.orig Sun Jul 17 16:07:57 2005 >+++ usr.sbin/acpi/acpiconf/acpiconf.c Sun Jul 17 16:11:30 2005 >@@ -96,7 +96,7 @@ > err(EX_USAGE, "invalid battery %d", num); > > battio.unit = num; >- if (ioctl(acpifd, ACPIIO_CMBAT_GET_BIF, &battio) == -1) >+ if (ioctl(acpifd, ACPIIO_BATT_GET_BIF, &battio) == -1) > err(EX_IOERR, "get battery info (%d) failed", num); > printf("Battery %d information\n", num); > if (battio.bif.units == 0) >@@ -129,7 +129,7 @@ > printf("OEM info:\t\t%s\n", battio.bif.oeminfo); > > battio.unit = num; >- if (ioctl(acpifd, ACPIIO_CMBAT_GET_BST, &battio) == -1) >+ if (ioctl(acpifd, ACPIIO_BATT_GET_BST, &battio) == -1) > err(EX_IOERR, "get battery info (%d) failed", num); > > if (battio.bst.state != ACPI_BATT_STAT_NOT_PRESENT) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 83672
: 55345 |
55346
|
55347
|
55348