summaryrefslogtreecommitdiff
path: root/include/vsprintf.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-04-24 23:30:55 -0600
committerTom Rini <trini@konsulko.com>2022-04-25 10:00:03 -0400
commit18436c74dce29a74e996d5932ba01e0cd3481326 (patch)
treee20529fb59ac1e1013097b136de255ea1e9c790e /include/vsprintf.h
parent2fa4756d03a377dd0a6e943d2a16f4e2c9c97342 (diff)
downloadu-boot-18436c74dce29a74e996d5932ba01e0cd3481326.tar.gz
u-boot-18436c74dce29a74e996d5932ba01e0cd3481326.tar.bz2
u-boot-18436c74dce29a74e996d5932ba01e0cd3481326.zip
test: Add tests for trailing_strtol()
This function currently has no tests. Add some. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/vsprintf.h')
-rw-r--r--include/vsprintf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vsprintf.h b/include/vsprintf.h
index 532ef3650b..3d1f968df4 100644
--- a/include/vsprintf.h
+++ b/include/vsprintf.h
@@ -99,7 +99,7 @@ long long simple_strtoll(const char *cp, char **endp, unsigned int base);
* For example, "abc123" would return 123.
*
* @str: String to exxamine
- * Return: training number if found, else -1
+ * Return: trailing number if found, else -1
*/
long trailing_strtol(const char *str);
@@ -114,7 +114,7 @@ long trailing_strtol(const char *str);
* @str: String to exxamine
* @end: Pointer to end of string to examine, or NULL to use the
* whole string
- * Return: training number if found, else -1
+ * Return: trailing number if found, else -1
*/
long trailing_strtoln(const char *str, const char *end);