ACPICA: Cleanup for all string-to-integer conversions
ACPICA commit e2e72a351201fd58e4694418859ae2c247dafca0 Consolidate multiple versions of strtoul64 to one common version. limit possible bases to either 10 or 16. Handles both implicit and explicit conversions. Added a 2-character ascii-to-hex function for GPEs and buffers. Adds a new file, utstrtoul64.c Link: https://github.com/acpica/acpica/commit/e2e72a35 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>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
60361b7584
commit
5ebd2eaaef
@@ -36,10 +36,12 @@ TOOL_OBJS = \
|
||||
utdebug.o\
|
||||
utexcep.o\
|
||||
utglobal.o\
|
||||
uthex.o\
|
||||
utmath.o\
|
||||
utnonansi.o\
|
||||
utprint.o\
|
||||
utstring.o\
|
||||
utstrtoul64.o\
|
||||
utxferror.o\
|
||||
oslinuxtbl.o\
|
||||
cmfsize.o\
|
||||
|
@@ -287,8 +287,8 @@ int ap_dump_table_by_address(char *ascii_address)
|
||||
|
||||
/* Convert argument to an integer physical address */
|
||||
|
||||
status = acpi_ut_strtoul64(ascii_address, ACPI_ANY_BASE,
|
||||
ACPI_MAX64_BYTE_WIDTH, &long_address);
|
||||
status = acpi_ut_strtoul64(ascii_address, ACPI_STRTOUL_64BIT,
|
||||
&long_address);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
fprintf(stderr, "%s: Could not convert to a physical address\n",
|
||||
ascii_address);
|
||||
|
@@ -208,8 +208,8 @@ static int ap_do_options(int argc, char **argv)
|
||||
case 'r': /* Dump tables from specified RSDP */
|
||||
|
||||
status =
|
||||
acpi_ut_strtoul64(acpi_gbl_optarg, ACPI_ANY_BASE,
|
||||
ACPI_MAX64_BYTE_WIDTH,
|
||||
acpi_ut_strtoul64(acpi_gbl_optarg,
|
||||
ACPI_STRTOUL_64BIT,
|
||||
&gbl_rsdp_base);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
fprintf(stderr,
|
||||
|
Reference in New Issue
Block a user