Commit 0b2dd130 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] drivers/isdn/*: trivial vsnprintf() conversion

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f6e2cdc8
...@@ -185,7 +185,7 @@ void diva_log_info(unsigned char *format, ...) ...@@ -185,7 +185,7 @@ void diva_log_info(unsigned char *format, ...)
unsigned char line[160]; unsigned char line[160];
va_start(args, format); va_start(args, format);
vsprintf(line, format, args); vsnprintf(line, sizeof(line), format, args);
va_end(args); va_end(args);
printk(KERN_INFO "%s: %s\n", DRIVERLNAME, line); printk(KERN_INFO "%s: %s\n", DRIVERLNAME, line);
......
...@@ -433,7 +433,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...) ...@@ -433,7 +433,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256]; char buf[256];
va_start(args, fmt); va_start(args, fmt);
vsprintf(buf, fmt, args); vsnprintf(buf, sizeof(buf), fmt, args);
DBG(DBG_L1M, "%s", buf); DBG(DBG_L1M, "%s", buf);
va_end(args); va_end(args);
} }
......
...@@ -173,7 +173,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...) ...@@ -173,7 +173,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256]; char buf[256];
va_start(args, fmt); va_start(args, fmt);
vsprintf(buf, fmt, args); vsnprintf(buf, sizeof(buf), fmt, args);
DBG(8, "%s", buf); DBG(8, "%s", buf);
va_end(args); va_end(args);
} }
...@@ -275,7 +275,7 @@ static void dout_debug(struct FsmInst *fi, char *fmt, ...) ...@@ -275,7 +275,7 @@ static void dout_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256]; char buf[256];
va_start(args, fmt); va_start(args, fmt);
vsprintf(buf, fmt, args); vsnprintf(buf, sizeof(buf), fmt, args);
DBG(0x2, "%s", buf); DBG(0x2, "%s", buf);
va_end(args); va_end(args);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment