trace: Use an unsigned char for the annotation type

This brings the array entry size down to 24 bytes, and we do allocate a lot
of them.

I've lazily fixed a tabs vs spaces style issue at the same time.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2026-05-12 11:24:09 -05:00
parent a8d6a3ead5
commit 2e07871e88

View file

@ -47,13 +47,13 @@ enum weston_debug_annotation_type {
};
struct weston_debug_annotation {
const char *key;
enum weston_debug_annotation_type type;
union {
int ivalue;
float fvalue;
const char *svalue;
};
const char *key;
union {
int ivalue;
float fvalue;
const char *svalue;
};
unsigned char type;
unsigned char parent;
unsigned char key_size;
};