acpica/acpica — pull request #9 by RehabMan (2013-06-01 20:57:09+00:00)
Title: iasl disassembly string output limited to 255 characters

The following is compiled successfully:

```
DefinitionBlock ("test.aml", "DSDT", 2, "TEST", "TEST", 0x00000001)
{
Name (TEST, "-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789")
}
```

TEST is string of 260 characters.

But it cannot be successfully decompiled:
```
DefinitionBlock ("test1.aml", "DSDT", 2, "TEST", "TEST", 0x00000001)
{
Name (TEST, "-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234"...)
}
```

The fix provided increases the max from ACPI_UINT8_MAX (255) to ACPI_UINT16_MAX (65535). Changed both in dmopcode.c (this test case) and dmbuffer.c (which would, I assume, be the case of Buffer { "long string..." })

It might be wise to look at other calls to AcpiUtPrintString to see if an adjustment is appropriate there too. I also did not review the Unicode string handling.

You can ignore my first commit to switch from _CYGWIN to _APPLE Makefile.config.