*_string() enumerator to string functions: remove common prefix
[babeltrace.git] / src / lib / trace-ir / field-path.h
index 506c0063d7fe43c8b579bfb9d8b5c440f564f9e4..df2931626b4810d250fe15028fd7d688386f67da 100644 (file)
@@ -29,6 +29,7 @@
 #include "lib/object.h"
 #include <babeltrace2/trace-ir/field-path-const.h>
 #include "common/assert.h"
+#include "common/macros.h"
 #include <glib.h>
 
 struct bt_field_path_item {
@@ -38,7 +39,7 @@ struct bt_field_path_item {
 
 struct bt_field_path {
        struct bt_object base;
-       enum bt_scope root;
+       enum bt_field_path_scope root;
 
        /* Array of `struct bt_field_path_item` (items) */
        GArray *items;
@@ -79,9 +80,9 @@ const char *bt_field_path_item_type_string(enum bt_field_path_item_type type)
 {
        switch (type) {
        case BT_FIELD_PATH_ITEM_TYPE_INDEX:
-               return "BT_FIELD_PATH_ITEM_TYPE_INDEX";
+               return "INDEX";
        case BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT:
-               return "BT_FIELD_PATH_ITEM_TYPE_CURRENT_ARRAY_ELEMENT";
+               return "CURRENT_ARRAY_ELEMENT";
        default:
                return "(unknown)";
        }
This page took 0.062297 seconds and 4 git commands to generate.