v3d: Use /* */ instead of () for enum names in CLIF output.
authorEric Anholt <eric@anholt.net>
Mon, 25 Jun 2018 22:24:27 +0000 (15:24 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Jul 2018 19:56:36 +0000 (12:56 -0700)
This lets the comments be ignored by the CLIF parser.

src/broadcom/cle/v3d_decoder.c

index e1ce2f65e892f882ed4a31018e04dc89b56e095e..a540b1cf559b67b6244bb8fbb24fb084b497824e 100644 (file)
@@ -917,7 +917,7 @@ v3d_field_iterator_next(struct v3d_field_iterator *iter)
         if (enum_name) {
                 int length = strlen(iter->value);
                 snprintf(iter->value + length, sizeof(iter->value) - length,
-                         " (%s)", enum_name);
+                         " /* %s */", enum_name);
         }
 
         return true;