diff options
Diffstat (limited to 'tools/power/acpi/common/getopt.c')
-rw-r--r-- | tools/power/acpi/common/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/acpi/common/getopt.c b/tools/power/acpi/common/getopt.c index 0bd343f136a4..3919970f5aea 100644 --- a/tools/power/acpi/common/getopt.c +++ b/tools/power/acpi/common/getopt.c | |||
@@ -57,7 +57,7 @@ | |||
57 | #include "acapps.h" | 57 | #include "acapps.h" |
58 | 58 | ||
59 | #define ACPI_OPTION_ERROR(msg, badchar) \ | 59 | #define ACPI_OPTION_ERROR(msg, badchar) \ |
60 | if (acpi_gbl_opterr) {acpi_log_error ("%s%c\n", msg, badchar);} | 60 | if (acpi_gbl_opterr) {fprintf (stderr, "%s%c\n", msg, badchar);} |
61 | 61 | ||
62 | int acpi_gbl_opterr = 1; | 62 | int acpi_gbl_opterr = 1; |
63 | int acpi_gbl_optind = 1; | 63 | int acpi_gbl_optind = 1; |
@@ -94,7 +94,7 @@ int acpi_getopt_argument(int argc, char **argv) | |||
94 | acpi_gbl_optarg = | 94 | acpi_gbl_optarg = |
95 | &argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)]; | 95 | &argv[acpi_gbl_optind++][(int)(current_char_ptr + 1)]; |
96 | } else if (++acpi_gbl_optind >= argc) { | 96 | } else if (++acpi_gbl_optind >= argc) { |
97 | ACPI_OPTION_ERROR("Option requires an argument: -", 'v'); | 97 | ACPI_OPTION_ERROR("\nOption requires an argument", 0); |
98 | 98 | ||
99 | current_char_ptr = 1; | 99 | current_char_ptr = 1; |
100 | return (-1); | 100 | return (-1); |