diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
| commit | 59ce063597ddbda74269a45aba8187dece2fe00a (patch) | |
| tree | 89234dd9f502de2faaf4a280ccd0d3785a7ae96f /source/tools/acpixtract | |
| parent | dbded195f9840f9044a6828c8877c6bf0a956482 (diff) | |
Notes
Diffstat (limited to 'source/tools/acpixtract')
| -rw-r--r-- | source/tools/acpixtract/axmain.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/tools/acpixtract/axmain.c b/source/tools/acpixtract/axmain.c index b0cadfc78e78..bfc27bb5a622 100644 --- a/source/tools/acpixtract/axmain.c +++ b/source/tools/acpixtract/axmain.c @@ -74,6 +74,9 @@ static int AxAction = AX_EXTRACT_AML_TABLES; /* DSDT & SSDTs */ #define AX_OPTIONAL_TABLES 0 #define AX_REQUIRED_TABLE 1 +#define AX_UTILITY_NAME "ACPI Binary Table Extraction Utility" +#define AX_SUPPORTED_OPTIONS "ahls:v" + /****************************************************************************** * @@ -93,6 +96,7 @@ DisplayUsage ( ACPI_OPTION ("-a", "Extract all tables, not just DSDT/SSDT"); ACPI_OPTION ("-l", "List table summaries, do not extract"); ACPI_OPTION ("-s <signature>", "Extract all tables with <signature>"); + ACPI_OPTION ("-v", "Display version information"); printf ("\nExtract binary ACPI tables from text acpidump output\n"); printf ("Default invocation extracts the DSDT and all SSDTs\n"); @@ -118,7 +122,7 @@ main ( ACPI_DEBUG_INITIALIZE (); /* For debug version only */ - printf (ACPI_COMMON_SIGNON ("ACPI Binary Table Extraction Utility")); + printf (ACPI_COMMON_SIGNON (AX_UTILITY_NAME)); if (argc < 2) { @@ -128,7 +132,7 @@ main ( /* Command line options */ - while ((j = AcpiGetopt (argc, argv, "ahls:")) != EOF) switch (j) + while ((j = AcpiGetopt (argc, argv, AX_SUPPORTED_OPTIONS)) != EOF) switch (j) { case 'a': @@ -145,6 +149,10 @@ main ( AxAction = AX_EXTRACT_SIGNATURE; /* Extract only tables with this sig */ break; + case 'v': /* -v: (Version): signon already emitted, just exit */ + + return (0); + case 'h': default: |
