summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Karas <aka@semihalf.com>2020-07-02 15:32:00 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-07 17:27:00 +0000
commitcb01c2a315d20ca0eb0269b7917a9884d7f4c2fd (patch)
treef03416a6872cac1f249b6a14904918224483570c
parent5664bc8cf9414ac4e0f08a2b5cafb5e9f5b3eecc (diff)
downloadcoreboot-cb01c2a315d20ca0eb0269b7917a9884d7f4c2fd.tar.xz
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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43089 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/include/lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/lib.h b/src/include/lib.h
index 0d6fdb14be..46d8b02112 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -40,6 +40,8 @@ void hexdump32(char LEVEL, const void *d, size_t len);
*
* 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);