diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-13 20:29:51 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-27 17:03:16 -0500 |
commit | f8a2d191cf3a200c080fbf6f8e095589d3afd57f (patch) | |
tree | 9c028500e62ef9de0c4ed1f3979433f050a47d47 /include | |
parent | ac42fe539ca991543c888e261e62b4187ec9bbee (diff) | |
download | u-boot-f8a2d191cf3a200c080fbf6f8e095589d3afd57f.tar.gz u-boot-f8a2d191cf3a200c080fbf6f8e095589d3afd57f.tar.bz2 u-boot-f8a2d191cf3a200c080fbf6f8e095589d3afd57f.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/uuid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uuid.h b/include/uuid.h index 0c653cb087..4a4883d3b5 100644 --- a/include/uuid.h +++ b/include/uuid.h @@ -23,6 +23,7 @@ struct uuid { #define UUID_STR_FORMAT_GUID BIT(0) #define UUID_STR_UPPER_CASE BIT(1) +/* Use UUID_STR_LEN + 1 for string space */ #define UUID_STR_LEN 36 #define UUID_BIN_LEN sizeof(struct uuid) |