Skip to content

Commit

Permalink
ACPICA: iASL/Disassembler: Add a check for missing filename
Browse files Browse the repository at this point in the history
ACPICA commit fc0f12b1eff6253f83e599a7ee1765fcc8e42dcc

Add check for required filename for the -d and -da options.
ACPICA BZ 1285.

Link: https://github.com/acpica/acpica/commit/fc0f12b1
Link: https://bugs.acpica.org/show_bug.cgi?id=1285
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Aug 13, 2016
1 parent 2368b1a commit d8303ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/acpi/common/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int acpi_getopt_argument(int argc, char **argv)
acpi_gbl_optarg =
&argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)];
} else if (++acpi_gbl_optind >= argc) {
ACPI_OPTION_ERROR("Option requires an argument: -", 'v');
ACPI_OPTION_ERROR("\nOption requires an argument", 0);

current_char_ptr = 1;
return (-1);
Expand Down

0 comments on commit d8303ac

Please sign in to comment.