PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/alpha/lib/srm_puts.c

http://github.com/mirrors/linux
C | 24 lines | 16 code | 4 blank | 4 comment | 2 complexity | aae06cda7b63a4a147274070b7824640 MD5 | raw file
 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
 9long
10srm_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}