summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/acpidump/acpi.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-10-05 20:45:05 +0000
committernjl <njl@FreeBSD.org>2004-10-05 20:45:05 +0000
commitd99a39abe6af641c3e812ac36b22f5500c69face (patch)
tree3888ef5ff5d17fb797090bc066139928725241ec /usr.sbin/acpi/acpidump/acpi.c
parente1524c78c8fc81ae61c279fd37d9af909b75d133 (diff)
downloadFreeBSD-src-d99a39abe6af641c3e812ac36b22f5500c69face.zip
FreeBSD-src-d99a39abe6af641c3e812ac36b22f5500c69face.tar.gz
Back out the -s flag and go back to dumping the SSDTs by default.
Diffstat (limited to 'usr.sbin/acpi/acpidump/acpi.c')
-rw-r--r--usr.sbin/acpi/acpidump/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index fee5f53..4eae454 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -733,7 +733,7 @@ write_dsdt(int fd, struct ACPIsdt *rsdt, struct ACPIsdt *dsdt)
sdt.check = 0;
sum = acpi_checksum(dsdt->body, dsdt->len - SIZEOF_SDT_HDR);
ssdt = sdt_from_rsdt(rsdt, "SSDT", NULL);
- while (sflag && ssdt != NULL) {
+ while (ssdt != NULL) {
sdt.len += ssdt->len - SIZEOF_SDT_HDR;
sum += acpi_checksum(ssdt->body,
ssdt->len - SIZEOF_SDT_HDR);
@@ -748,7 +748,7 @@ write_dsdt(int fd, struct ACPIsdt *rsdt, struct ACPIsdt *dsdt)
write(fd, dsdt->body, dsdt->len - SIZEOF_SDT_HDR);
/* Write out any SSDTs (if present and the user requested this.) */
- if (sflag && rsdt != NULL) {
+ if (rsdt != NULL) {
ssdt = sdt_from_rsdt(rsdt, "SSDT", NULL);
while (ssdt != NULL) {
write(fd, ssdt->body, ssdt->len - SIZEOF_SDT_HDR);
OpenPOWER on IntegriCloud