Anna Karaś has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43089 )
Change subject: src/include: improve the description of hexstrtobin ......................................................................
src/include: improve the description of hexstrtobin
Specify how hexstrtobin.c processes the strings of odd length.
Signed-off-by: Anna Karas aka@semihalf.com Change-Id: Ie8cd8fb93d7dab08c5e7f28fc511b6381f5ad13a --- M src/include/lib.h 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/43089/1
diff --git a/src/include/lib.h b/src/include/lib.h index 0d6fdb1..46d8b02 100644 --- a/src/include/lib.h +++ b/src/include/lib.h @@ -40,6 +40,8 @@ * * Defined in src/lib/hexstrtobin.c * Ignores non-hex characters in the string. + * Ignores the last hex character if the number of hex characters in the string + * is odd. * Returns the number of bytes that have been put in the buffer. */ size_t hexstrtobin(const char *str, uint8_t *buf, size_t len);