summaryrefslogtreecommitdiffstats
path: root/compiler/aslmain.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-09-15 20:49:34 +0000
committerjkim <jkim@FreeBSD.org>2010-09-15 20:49:34 +0000
commit222f62b9508c30168451c22ba677efe564ec2bb6 (patch)
tree41eb78500422196a69e6d775b795f5ee483d4a9e /compiler/aslmain.c
parent7246513d8afc4166ea14544296293fcb8df78649 (diff)
downloadFreeBSD-src-222f62b9508c30168451c22ba677efe564ec2bb6.zip
FreeBSD-src-222f62b9508c30168451c22ba677efe564ec2bb6.tar.gz
Import ACPICA 20100915.
Diffstat (limited to 'compiler/aslmain.c')
-rw-r--r--compiler/aslmain.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/compiler/aslmain.c b/compiler/aslmain.c
index 39ea7aa..90faff7 100644
--- a/compiler/aslmain.c
+++ b/compiler/aslmain.c
@@ -214,7 +214,7 @@ Options (
printf (" -cr Disable Resource Descriptor error checking\n");
printf (" -r<Revision> Override table header Revision (1-255)\n");
- printf ("\nListings:\n");
+ printf ("\nASL Listing Files:\n");
printf (" -l Create mixed listing file (ASL source and AML) (*.lst)\n");
printf (" -ln Create namespace file (*.nsp)\n");
printf (" -ls Create combined source file (expanded includes) (*.src)\n");
@@ -462,6 +462,7 @@ AslDoOptions (
BOOLEAN IsResponseFile)
{
int j;
+ ACPI_STATUS Status;
/* Get the command line options */
@@ -554,7 +555,12 @@ AslDoOptions (
case 'e':
- AcpiDmAddToExternalFileList (AcpiGbl_Optarg);
+ Status = AcpiDmAddToExternalFileList (AcpiGbl_Optarg);
+ if (ACPI_FAILURE (Status))
+ {
+ printf ("Could not add %s to external list\n", AcpiGbl_Optarg);
+ return (-1);
+ }
break;
@@ -601,7 +607,6 @@ AslDoOptions (
printf ("Unknown option: -h%s\n", AcpiGbl_Optarg);
return (-1);
}
- break;
case 'I': /* Add an include file search directory */
@@ -891,6 +896,7 @@ AslCommandLine (
char **argv)
{
int BadCommandLine = 0;
+ ACPI_STATUS Status;
/* Minimum command line contains at least the command and an input file */
@@ -908,7 +914,11 @@ AslCommandLine (
if (Gbl_DoTemplates)
{
- DtCreateTemplates (Gbl_TemplateSignature);
+ Status = DtCreateTemplates (Gbl_TemplateSignature);
+ if (ACPI_FAILURE (Status))
+ {
+ exit (-1);
+ }
exit (1);
}
OpenPOWER on IntegriCloud