
3 Sep
2025
3 Sep
'25
1:36 p.m.
From: Simon Glass <sjg@chromium.org> This is always 16 bytes. Define a constant, so we can use that rather than open-coding the value. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/u-boot/uuid.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/u-boot/uuid.h b/include/u-boot/uuid.h index 940e7a32fe8..10fd51e13df 100644 --- a/include/u-boot/uuid.h +++ b/include/u-boot/uuid.h @@ -85,6 +85,8 @@ struct uuid { #define UUID_VARIANT_SHIFT 7 #define UUID_VARIANT 0x1 +#define UUID_LEN 16 + int uuid_str_valid(const char *uuid); /* -- 2.43.0