aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-12-08 05:39:34 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:01 -0500
commit0b2dd130a5a8774a30de1f94266f6b9a9892153c (patch)
treee0542cc353be9169ec0ce2d6e9e80e9a33dbe963
parentf6e2cdc8aa395ea813603bfd81b70b5c461a8ebf (diff)
[PATCH] drivers/isdn/*: trivial vsnprintf() conversion
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/isdn/hardware/eicon/divasmain.c2
-rw-r--r--drivers/isdn/hisax/hisax_isac.c2
-rw-r--r--drivers/isdn/hisax/st5481_d.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c
index dae2e83dd5e8..91fc92c01afe 100644
--- a/drivers/isdn/hardware/eicon/divasmain.c
+++ b/drivers/isdn/hardware/eicon/divasmain.c
@@ -185,7 +185,7 @@ void diva_log_info(unsigned char *format, ...)
185 unsigned char line[160]; 185 unsigned char line[160];
186 186
187 va_start(args, format); 187 va_start(args, format);
188 vsprintf(line, format, args); 188 vsnprintf(line, sizeof(line), format, args);
189 va_end(args); 189 va_end(args);
190 190
191 printk(KERN_INFO "%s: %s\n", DRIVERLNAME, line); 191 printk(KERN_INFO "%s: %s\n", DRIVERLNAME, line);
diff --git a/drivers/isdn/hisax/hisax_isac.c b/drivers/isdn/hisax/hisax_isac.c
index 81eac344bb03..d0fefcf999cb 100644
--- a/drivers/isdn/hisax/hisax_isac.c
+++ b/drivers/isdn/hisax/hisax_isac.c
@@ -433,7 +433,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
433 char buf[256]; 433 char buf[256];
434 434
435 va_start(args, fmt); 435 va_start(args, fmt);
436 vsprintf(buf, fmt, args); 436 vsnprintf(buf, sizeof(buf), fmt, args);
437 DBG(DBG_L1M, "%s", buf); 437 DBG(DBG_L1M, "%s", buf);
438 va_end(args); 438 va_end(args);
439} 439}
diff --git a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c
index 1d8c2618366c..b8c4855cc889 100644
--- a/drivers/isdn/hisax/st5481_d.c
+++ b/drivers/isdn/hisax/st5481_d.c
@@ -173,7 +173,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
173 char buf[256]; 173 char buf[256];
174 174
175 va_start(args, fmt); 175 va_start(args, fmt);
176 vsprintf(buf, fmt, args); 176 vsnprintf(buf, sizeof(buf), fmt, args);
177 DBG(8, "%s", buf); 177 DBG(8, "%s", buf);
178 va_end(args); 178 va_end(args);
179} 179}
@@ -275,7 +275,7 @@ static void dout_debug(struct FsmInst *fi, char *fmt, ...)
275 char buf[256]; 275 char buf[256];
276 276
277 va_start(args, fmt); 277 va_start(args, fmt);
278 vsprintf(buf, fmt, args); 278 vsnprintf(buf, sizeof(buf), fmt, args);
279 DBG(0x2, "%s", buf); 279 DBG(0x2, "%s", buf);
280 va_end(args); 280 va_end(args);
281} 281}