Skip to content

Commit

Permalink
[PATCH] drivers/isdn/*: trivial vsnprintf() conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Alan Cox <[email protected]>
Cc: Karsten Keil <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Dec 8, 2006
1 parent f6e2cdc commit 0b2dd13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/isdn/hardware/eicon/divasmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void diva_log_info(unsigned char *format, ...)
unsigned char line[160];

va_start(args, format);
vsprintf(line, format, args);
vsnprintf(line, sizeof(line), format, args);
va_end(args);

printk(KERN_INFO "%s: %s\n", DRIVERLNAME, line);
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/hisax/hisax_isac.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256];

va_start(args, fmt);
vsprintf(buf, fmt, args);
vsnprintf(buf, sizeof(buf), fmt, args);
DBG(DBG_L1M, "%s", buf);
va_end(args);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/isdn/hisax/st5481_d.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static void l1m_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256];

va_start(args, fmt);
vsprintf(buf, fmt, args);
vsnprintf(buf, sizeof(buf), fmt, args);
DBG(8, "%s", buf);
va_end(args);
}
Expand Down Expand Up @@ -275,7 +275,7 @@ static void dout_debug(struct FsmInst *fi, char *fmt, ...)
char buf[256];

va_start(args, fmt);
vsprintf(buf, fmt, args);
vsnprintf(buf, sizeof(buf), fmt, args);
DBG(0x2, "%s", buf);
va_end(args);
}
Expand Down

0 comments on commit 0b2dd13

Please sign in to comment.