From ceb8cd64643ea90ee58dcd5f99ce80ee2e2b38df Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Wed, 14 Mar 2007 22:55:30 +0000 Subject: [PATCH] Document exact command preferred for sending ASL as part of bug reports. --- usr.sbin/acpi/acpidump/acpidump.8 | 6 ++++++ usr.sbin/acpi/acpidump/acpidump.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/usr.sbin/acpi/acpidump/acpidump.8 b/usr.sbin/acpi/acpidump/acpidump.8 index f2b02914566..1401e387ea5 100644 --- a/usr.sbin/acpi/acpidump/acpidump.8 +++ b/usr.sbin/acpi/acpidump/acpidump.8 @@ -145,6 +145,12 @@ Store the DSDT data block from physical memory into the specified file. .It Pa /dev/mem .El .Sh EXAMPLES +If a developer requests a copy of your ASL, please use the following +command to dump all tables and compress the result. +.Bd -literal -offset indent +# acpidump -dt | gzip -c9 > my_computer.asl.gz +.Ed +.Pp This example dumps the DSDT from physical memory to foo.dsdt. It also prints the contents of various system tables and disassembles the AML contained in the DSDT to stdout, redirecting the output diff --git a/usr.sbin/acpi/acpidump/acpidump.c b/usr.sbin/acpi/acpidump/acpidump.c index 33610386456..a601ac26163 100644 --- a/usr.sbin/acpi/acpidump/acpidump.c +++ b/usr.sbin/acpi/acpidump/acpidump.c @@ -46,6 +46,8 @@ usage(const char *progname) fprintf(stderr, "usage: %s [-d] [-t] [-h] [-v] [-f dsdt_input] " "[-o dsdt_output]\n", progname); + fprintf(stderr, "To send ASL:\n\t%s -dt | gzip -c9 > foo.asl.gz\n", + progname); exit(1); }