projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac42fe5
)
uuid: Add a comment for UUID_STR_LEN
author
Simon Glass
<sjg@chromium.org>
Thu, 14 Jan 2021 03:29:51 +0000
(20:29 -0700)
committer
Tom Rini
<trini@konsulko.com>
Wed, 27 Jan 2021 22:03:16 +0000
(17:03 -0500)
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>
include/uuid.h
patch
|
blob
|
history
diff --git
a/include/uuid.h
b/include/uuid.h
index
0c653cb
..
4a4883d
100644
(file)
--- 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)