summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2016-08-04 11:43:26 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-13 04:09:33 +0300
commitd8303ace36aaa001e1704acb2bd13dd4f08a0d67 (patch)
tree056117a19822bf48badf6d950281090581df7c54 /tools/power
parent2368b1a17c95e5952d0aa4706f4fc7a32ebe8828 (diff)
downloadlinux-d8303ace36aaa001e1704acb2bd13dd4f08a0d67.tar.xz
ACPICA: iASL/Disassembler: Add a check for missing filename
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>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/acpi/common/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/acpi/common/getopt.c b/tools/power/acpi/common/getopt.c
index 0bd343f136a4..e9e80910a61d 100644
--- a/tools/power/acpi/common/getopt.c
+++ b/tools/power/acpi/common/getopt.c
@@ -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);