Skip to contentSkip to conversation

serial: samsung: fix typo in debug code

PATCH In review Arnd Bergmann 4 participants 4 messages Jun 3, 2014 – Jun 5, 2014

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

PATCH 1/1 serial: samsung: fix typo in debug code

commit e4ac92df2791 ("serial: samsung: Neaten dbg uses") introduced a regression in the conversion from vsprintf to vsnprintf.

This fixes the build error by passing the correct variable name.

Cc Joe Perches <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Doug Anderson <[email protected]>
Cc Kukjin Kim <[email protected]>
drivers/tty/serial/samsung.c +1 -1
index 3293377..c1d3ebd 100644
@@ -66,7 +66,7 @@ static void dbg(const char *fmt, ...)
 	char buff[256];
 
 	va_start(va, fmt);
-	vscnprintf(buff, sizeof(buf), fmt, va);
+	vscnprintf(buff, sizeof(buff), fmt, va);
 	va_end(va);
 
 	printascii(buff);
#1 lore raw

Hi Arnd,

Quoted 4 lines · Arnd Bergmann

commit e4ac92df2791 ("serial: samsung: Neaten dbg uses") introduced a regression in the conversion from vsprintf to vsnprintf.

This fixes the build error by passing the correct variable name.

I submitted a similar patch sometime back.
http://www.spinics.net/lists/linux-serial/msg12843.html

Regards,
Sachin

#2 lore raw
In reply to Arnd Bergmann
Quoted 16 lines · Arnd Bergmann

commit e4ac92df2791 ("serial: samsung: Neaten dbg uses") introduced a regression in the conversion from vsprintf to vsnprintf.

This fixes the build error by passing the correct variable name.

Cc Joe Perches <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Doug Anderson <[email protected]>
Cc Kukjin Kim <[email protected]>
drivers/tty/serial/samsung.c +0 -0
index 3293377..c1d3ebd 100644

drivers/tty/serial/samsung.c static void dbg(const char *fmt, ...) · line 72

Quoted 8 lines
drivers/tty/serial/samsung.c +1 -1
@@ -66,7 +66,7 @@ static void dbg(const char *fmt, ...)
 	char buff[256];
 
 	va_start(va, fmt);
-	vscnprintf(buff, sizeof(buf), fmt, va);
+	vscnprintf(buff, sizeof(buff), fmt, va);
 	va_end(va);
 
 	printascii(buff);

Greg?

The original has ended up in Linus' -next branch.

Can you please apply this sooner rather than later?

Sorry for the bother. Dunno how it happened.

I thought I compiled it with the appropriate CONFIG settings.

#3 lore raw
Quoted 24 lines · Joe Perches
Quoted 23 lines · Arnd Bergmann

commit e4ac92df2791 ("serial: samsung: Neaten dbg uses") introduced a regression in the conversion from vsprintf to vsnprintf.

This fixes the build error by passing the correct variable name.

Cc Joe Perches <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Doug Anderson <[email protected]>
Cc Kukjin Kim <[email protected]>
drivers/tty/serial/samsung.c +1 -1
index 3293377..c1d3ebd 100644
@@ -66,7 +66,7 @@ static void dbg(const char *fmt, ...)
 	char buff[256];
 
 	va_start(va, fmt);
-	vscnprintf(buff, sizeof(buf), fmt, va);
+	vscnprintf(buff, sizeof(buff), fmt, va);
 	va_end(va);
 
Quoted 7 lines

drivers/tty/serial/samsung.c static void dbg(const char *fmt, ...) · line 72

Quoted 1 line
drivers/tty/serial/samsung.c +0 -0
 	printascii(buff);

Greg?

The original has ended up in Linus' -next branch.

Can you please apply this sooner rather than later?

Let me work through these 3.4-stable patches first, so give me a day or so, thanks.

greg k-h