diff options
| author | Bob Moore <robert.moore@intel.com> | 2017-11-17 18:40:20 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-11-26 19:20:29 -0500 |
| commit | 90adf776a9b01faa08f29d712de5ff0bf5ba1441 (patch) | |
| tree | 4cd21e52c0d88bcde1ce09b6e37efbdbf0138d8f /tools | |
| parent | a26f4df913140a43cf7e3cb89b12ac27d87df984 (diff) | |
ACPICA: Tools: Deploy -vd option (build date/time) across all tools
ACPICA commit 336131640a1574b86240b32eca3150195f9270d6
Common option for all tools.
Link: https://github.com/acpica/acpica/commit/33613164
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/power/acpi/tools/acpidump/apmain.c | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/tools/power/acpi/tools/acpidump/apmain.c b/tools/power/acpi/tools/acpidump/apmain.c index 22c3b4ee1617..be418fba9441 100644 --- a/tools/power/acpi/tools/acpidump/apmain.c +++ b/tools/power/acpi/tools/acpidump/apmain.c | |||
| @@ -79,7 +79,7 @@ struct ap_dump_action action_table[AP_MAX_ACTIONS]; | |||
| 79 | u32 current_action = 0; | 79 | u32 current_action = 0; |
| 80 | 80 | ||
| 81 | #define AP_UTILITY_NAME "ACPI Binary Table Dump Utility" | 81 | #define AP_UTILITY_NAME "ACPI Binary Table Dump Utility" |
| 82 | #define AP_SUPPORTED_OPTIONS "?a:bc:f:hn:o:r:svxz" | 82 | #define AP_SUPPORTED_OPTIONS "?a:bc:f:hn:o:r:sv^xz" |
| 83 | 83 | ||
| 84 | /****************************************************************************** | 84 | /****************************************************************************** |
| 85 | * | 85 | * |
| @@ -100,6 +100,7 @@ static void ap_display_usage(void) | |||
| 100 | ACPI_OPTION("-r <Address>", "Dump tables from specified RSDP"); | 100 | ACPI_OPTION("-r <Address>", "Dump tables from specified RSDP"); |
| 101 | ACPI_OPTION("-s", "Print table summaries only"); | 101 | ACPI_OPTION("-s", "Print table summaries only"); |
| 102 | ACPI_OPTION("-v", "Display version information"); | 102 | ACPI_OPTION("-v", "Display version information"); |
| 103 | ACPI_OPTION("-vd", "Display build date and time"); | ||
| 103 | ACPI_OPTION("-z", "Verbose mode"); | 104 | ACPI_OPTION("-z", "Verbose mode"); |
| 104 | 105 | ||
| 105 | ACPI_USAGE_TEXT("\nTable Options:\n"); | 106 | ACPI_USAGE_TEXT("\nTable Options:\n"); |
| @@ -231,10 +232,29 @@ static int ap_do_options(int argc, char **argv) | |||
| 231 | } | 232 | } |
| 232 | continue; | 233 | continue; |
| 233 | 234 | ||
| 234 | case 'v': /* Revision/version */ | 235 | case 'v': /* -v: (Version): signon already emitted, just exit */ |
| 235 | 236 | ||
| 236 | acpi_os_printf(ACPI_COMMON_SIGNON(AP_UTILITY_NAME)); | 237 | switch (acpi_gbl_optarg[0]) { |
| 237 | return (1); | 238 | case '^': /* -v: (Version) */ |
| 239 | |||
| 240 | fprintf(stderr, | ||
| 241 | ACPI_COMMON_SIGNON(AP_UTILITY_NAME)); | ||
| 242 | return (1); | ||
| 243 | |||
| 244 | case 'd': | ||
| 245 | |||
| 246 | fprintf(stderr, | ||
| 247 | ACPI_COMMON_SIGNON(AP_UTILITY_NAME)); | ||
| 248 | printf(ACPI_COMMON_BUILD_TIME); | ||
| 249 | return (1); | ||
| 250 | |||
| 251 | default: | ||
| 252 | |||
| 253 | printf("Unknown option: -v%s\n", | ||
| 254 | acpi_gbl_optarg); | ||
| 255 | return (-1); | ||
| 256 | } | ||
| 257 | break; | ||
| 238 | 258 | ||
| 239 | case 'z': /* Verbose mode */ | 259 | case 'z': /* Verbose mode */ |
| 240 | 260 | ||
