2 * arch/alpha/lib/srm_printk.c
5 #include <linux/kernel.h>
6 #include <asm/console.h>
9 srm_printk(const char *fmt
, ...)
11 static char buf
[1024];
17 len
= vsprintf(buf
, fmt
, args
);
20 /* count number of linefeeds in string: */
23 for (src
= buf
; *src
; ++src
) {
30 /* expand each linefeed into carriage-return/linefeed: */
31 for (dst
= src
+ num_lf
; src
>= buf
; ) {
39 srm_puts(buf
, num_lf
+len
);