uuid: Add a comment for UUID_STR_LEN
This macro is the length of the string but excludes the terminator. Users must add 1 when declaring a large-enough string. Add a comment to make this clear. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ac42fe539c
commit
f8a2d191cf
@ -23,6 +23,7 @@ struct uuid {
|
|||||||
#define UUID_STR_FORMAT_GUID BIT(0)
|
#define UUID_STR_FORMAT_GUID BIT(0)
|
||||||
#define UUID_STR_UPPER_CASE BIT(1)
|
#define UUID_STR_UPPER_CASE BIT(1)
|
||||||
|
|
||||||
|
/* Use UUID_STR_LEN + 1 for string space */
|
||||||
#define UUID_STR_LEN 36
|
#define UUID_STR_LEN 36
|
||||||
#define UUID_BIN_LEN sizeof(struct uuid)
|
#define UUID_BIN_LEN sizeof(struct uuid)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user