Skip to content

Commit e8cc2b9

Browse files
andy-shevpmladek
authored andcommitted
lib/vsprintf: update comment about simple_strto<foo>() functions
The commit 885e68e ("kernel.h: update comment about simple_strto<foo>() functions") updated a comment regard to simple_strto<foo>() functions, but missed similar change in the vsprintf.c module. Update comments in vsprintf.c as well for simple_strto<foo>() functions. Link: https://lore.kernel.org/r/[email protected] Reported-by: Uwe Kleine-König <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
1 parent 5661dd9 commit e8cc2b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/vsprintf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* @endp: A pointer to the end of the parsed string will be placed here
5959
* @base: The number base to use
6060
*
61-
* This function is obsolete. Please use kstrtoull instead.
61+
* This function has caveats. Please use kstrtoull instead.
6262
*/
6363
unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
6464
{
@@ -83,7 +83,7 @@ EXPORT_SYMBOL(simple_strtoull);
8383
* @endp: A pointer to the end of the parsed string will be placed here
8484
* @base: The number base to use
8585
*
86-
* This function is obsolete. Please use kstrtoul instead.
86+
* This function has caveats. Please use kstrtoul instead.
8787
*/
8888
unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)
8989
{
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(simple_strtoul);
9797
* @endp: A pointer to the end of the parsed string will be placed here
9898
* @base: The number base to use
9999
*
100-
* This function is obsolete. Please use kstrtol instead.
100+
* This function has caveats. Please use kstrtol instead.
101101
*/
102102
long simple_strtol(const char *cp, char **endp, unsigned int base)
103103
{
@@ -114,7 +114,7 @@ EXPORT_SYMBOL(simple_strtol);
114114
* @endp: A pointer to the end of the parsed string will be placed here
115115
* @base: The number base to use
116116
*
117-
* This function is obsolete. Please use kstrtoll instead.
117+
* This function has caveats. Please use kstrtoll instead.
118118
*/
119119
long long simple_strtoll(const char *cp, char **endp, unsigned int base)
120120
{

0 commit comments

Comments
 (0)