Support utf 16/32 for enum labels
[libside.git] / src / tracer.c
index b892872608cff0631690e1bc593c546f07da47ea..db21bab556373f61b2015fff7c1ba04d222a47d1 100644 (file)
@@ -465,7 +465,7 @@ void print_enum_labels(const struct side_enum_mappings *mappings, union int64_va
                }
                if (v64.s >= mapping->range_begin && v64.s <= mapping->range_end) {
                        printf("%s", print_count++ ? ", " : "");
-                       printf("\"%s\"", mapping->label);
+                       tracer_print_string(mapping->label.p, mapping->label.unit_size, mapping->label.byte_order, NULL);
                }
        }
        if (!print_count)
@@ -594,7 +594,7 @@ void tracer_print_enum_bitmap(const struct side_type *type_desc,
 match:
                if (match) {
                        printf("%s", print_count++ ? ", " : "");
-                       printf("\"%s\"", mapping->label);
+                       tracer_print_string(mapping->label.p, mapping->label.unit_size, mapping->label.byte_order, NULL);
                }
        }
        if (!print_count)
This page took 0.026841 seconds and 4 git commands to generate.