PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/alpha/lib/srm_puts.c

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
C | 23 lines | 16 code | 4 blank | 3 comment | 2 complexity | 8fb8743e1f372754ff616854c6644d63 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1/*
 2 *	arch/alpha/lib/srm_puts.c
 3 */
 4
 5#include <linux/string.h>
 6#include <asm/console.h>
 7
 8long
 9srm_puts(const char *str, long len)
10{
11	long remaining, written;
12
13	if (!callback_init_done)
14		return len;
15
16	for (remaining = len; remaining > 0; remaining -= written)
17	{
18		written = callback_puts(0, str, remaining);
19		written &= 0xffffffff;
20		str += written;
21	}
22	return len;
23}