Skip to contentSkip to conversation

vsprintf: spread "const char *"

PATCH In review Alexey Dobriyan 2 participants 2 messages Dec 19, 2019 – Dec 20, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vsprintf: spread "const char *"

---

 lib/vsprintf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vsprintf.c +1 -1
@@ -1550,7 +1550,7 @@ static noinline_for_stack
 char *ip_addr_string(char *buf, char *end, const void *ptr,
 		     struct printf_spec spec, const char *fmt)
 {
-	char *err_fmt_msg;
+	const char *err_fmt_msg;
 
 	if (check_pointer(&buf, end, ptr, spec))
 		return buf;
maintainer
#1 lore raw

On Thu, 19 Dec 2019 20:34:58 +0300
Alexey Dobriyan <[email protected]> wrote:

What does 'spread "const char*"' mean?

And you need to have a change log. Did this cause a warning? If so, please show it in the change log.

-- Steve

Quoted 17 lines

---

 lib/vsprintf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vsprintf.c +1 -1
@@ -1550,7 +1550,7 @@ static noinline_for_stack
 char *ip_addr_string(char *buf, char *end, const void *ptr,
 		     struct printf_spec spec, const char *fmt)
 {
-	char *err_fmt_msg;
+	const char *err_fmt_msg;
 
 	if (check_pointer(&buf, end, ptr, spec))
 		return buf;