Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42822
b: refs/heads/master
c: 5ac29e6
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Dec 7, 2006
1 parent 0306b50 commit dc5c9eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18debbbcce1306f0bbb1c71cf587fd90413acab6
refs/heads/master: 5ac29e62be2a581ec77953eca64d85ddeef488f0
2 changes: 1 addition & 1 deletion trunk/drivers/cdrom/optcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void debug(int debug_this, const char* fmt, ...)
return;

va_start(args, fmt);
vsprintf(s, fmt, args);
vsnprintf(s, sizeof(s), fmt, args);
printk(KERN_DEBUG "optcd: %s\n", s);
va_end(args);
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/cdrom/sbpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,10 @@ static void msg(int level, const char *fmt, ...)

msgnum++;
if (msgnum>99) msgnum=0;
sprintf(buf, MSG_LEVEL "%s-%d [%02d]: ", major_name, current_drive - D_S, msgnum);
va_start(args, fmt);
vsprintf(&buf[18], fmt, args);
vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
printk(buf);
printk(MSG_LEVEL "%s-%d [%02d]: %s", major_name, current_drive - D_S, msgnum, buf);
#if KLOGD_PAUSE
sbp_sleep(KLOGD_PAUSE); /* else messages get lost */
#endif /* KLOGD_PAUSE */
Expand Down

0 comments on commit dc5c9eb

Please sign in to comment.