summaryrefslogtreecommitdiffstats
path: root/source/components/disassembler/dmutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/disassembler/dmutils.c')
-rw-r--r--source/components/disassembler/dmutils.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/components/disassembler/dmutils.c b/source/components/disassembler/dmutils.c
index 700cfec..c075b69 100644
--- a/source/components/disassembler/dmutils.c
+++ b/source/components/disassembler/dmutils.c
@@ -256,6 +256,13 @@ AcpiDmCommaIfListMember (
if (AcpiDmListType (Op->Common.Parent) & BLOCK_COMMA_LIST)
{
+ /* Exit if Target has been marked IGNORE */
+
+ if (Op->Common.Next->Common.DisasmFlags & ACPI_PARSEOP_IGNORE)
+ {
+ return (FALSE);
+ }
+
/* Check for a NULL target operand */
if ((Op->Common.Next->Common.AmlOpcode == AML_INT_NAMEPATH_OP) &&
@@ -279,7 +286,13 @@ AcpiDmCommaIfListMember (
return (FALSE);
}
- AcpiOsPrintf (", ");
+ /* Emit comma only if this is not a C-style operator */
+
+ if (!Op->Common.OperatorSymbol)
+ {
+ AcpiOsPrintf (", ");
+ }
+
return (TRUE);
}
OpenPOWER on IntegriCloud