diff --git a/tools/rimage/src/include/rimage/toml_utils.h b/tools/rimage/src/include/rimage/toml_utils.h index cd17bb4af28d..22f257c2c65d 100644 --- a/tools/rimage/src/include/rimage/toml_utils.h +++ b/tools/rimage/src/include/rimage/toml_utils.h @@ -111,7 +111,11 @@ void parse_printable_key(const toml_table_t *table, struct parse_ctx *ctx, const void parse_str_key(const toml_table_t *table, struct parse_ctx *ctx, const char *key, char *dst, int capacity, int *error); -void parse_uuid(char *buf, uint8_t *uuid); +/** + * Parse UUID hex string into a byte array. The endianness of the output + * is architecture-dependent: do not use in any portable code. + */ +void parse_uuid(const char *buf, uint8_t *uuid); /** version is stored as toml array with integer number, something like: * "version = [1, 8]" diff --git a/tools/rimage/src/toml_utils.c b/tools/rimage/src/toml_utils.c index 5168591755f8..7570c5b1f7bb 100644 --- a/tools/rimage/src/toml_utils.c +++ b/tools/rimage/src/toml_utils.c @@ -290,7 +290,7 @@ void parse_str_key(const toml_table_t *table, struct parse_ctx *ctx, const char dst[capacity - 1] = 0; } -void parse_uuid(char *buf, uint8_t *uuid) +void parse_uuid(const char *buf, uint8_t *uuid) { struct uuid_t id; uint32_t d[11];