1 // SPDX-License-Identifier: GPL-2.0
3 * arch/alpha/lib/srm_printk.c
6 #include <linux/kernel.h>
7 #include <asm/console.h>
10 srm_printk(const char *fmt, ...)
12 static char buf[1024];
18 len = vsprintf(buf, fmt, args);
21 /* count number of linefeeds in string: */
24 for (src = buf; *src; ++src) {
31 /* expand each linefeed into carriage-return/linefeed: */
32 for (dst = src + num_lf; src >= buf; ) {
40 srm_puts(buf, num_lf+len);