diff options
author | Robert Moore <Robert.Moore@intel.com> | 2013-06-04 12:00:50 -0700 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2013-06-04 12:00:50 -0700 |
commit | 48edcb1179eb171a048de5947389f1abc9a2570e (patch) | |
tree | c560b6ba396a0f742ccc5fe61f730d361b11fbd2 /source/components/disassembler/dmbuffer.c | |
parent | 3fc353da228f90935d9dba83ff10de7178e1f813 (diff) | |
download | acpica-48edcb1179eb171a048de5947389f1abc9a2570e.tar.gz |
Disassembler: Expand maximum output string length to 64K.
Was 256 bytes max. The original purpose of this constraint was to
limit the amount of debug output. However, the string function in
question (UtPrintString) is now used for the disassembler also,
where 256 bytes is insufficient. Reported by RehabMan@GitHub.
Diffstat (limited to 'source/components/disassembler/dmbuffer.c')
-rw-r--r-- | source/components/disassembler/dmbuffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/components/disassembler/dmbuffer.c b/source/components/disassembler/dmbuffer.c index 4b33c562d..9e9f4c49f 100644 --- a/source/components/disassembler/dmbuffer.c +++ b/source/components/disassembler/dmbuffer.c @@ -249,7 +249,7 @@ AcpiDmByteList ( case ACPI_DASM_STRING: AcpiDmIndent (Info->Level); - AcpiUtPrintString ((char *) ByteData, ACPI_UINT8_MAX); + AcpiUtPrintString ((char *) ByteData, ACPI_UINT16_MAX); AcpiOsPrintf ("\n"); break; @@ -595,11 +595,9 @@ AcpiDmUnicode ( WordData = ACPI_CAST_PTR (UINT16, Op->Named.Data); WordCount = ACPI_DIV_2 (((UINT32) Op->Common.Value.Integer)); - - AcpiOsPrintf ("\""); - /* Write every other byte as an ASCII character */ + AcpiOsPrintf ("\""); for (i = 0; i < (WordCount - 1); i++) { AcpiOsPrintf ("%c", (int) WordData[i]); |