xref: /openbmc/linux/arch/alpha/lib/srm_puts.c (revision 8ffdff6a)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  *	arch/alpha/lib/srm_puts.c
4  */
5 
6 #include <linux/string.h>
7 #include <asm/console.h>
8 
9 long
10 srm_puts(const char *str, long len)
11 {
12 	long remaining, written;
13 
14 	if (!callback_init_done)
15 		return len;
16 
17 	for (remaining = len; remaining > 0; remaining -= written)
18 	{
19 		written = callback_puts(0, str, remaining);
20 		written &= 0xffffffff;
21 		str += written;
22 	}
23 	return len;
24 }
25