From cb01c2a315d20ca0eb0269b7917a9884d7f4c2fd Mon Sep 17 00:00:00 2001 From: Anna Karas Date: Thu, 2 Jul 2020 15:32:00 +0200 Subject: src/include: improve the description of hexstrtobin Specify how hexstrtobin.c processes the strings of odd length. Signed-off-by: Anna Karas Change-Id: Ie8cd8fb93d7dab08c5e7f28fc511b6381f5ad13a Reviewed-on: https://review.coreboot.org/c/coreboot/+/43089 Reviewed-by: Paul Fagerburg Tested-by: build bot (Jenkins) --- src/include/lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') 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); -- cgit v1.2.3