summaryrefslogtreecommitdiffstats
path: root/pbl/console.c
blob: a9859ad162be4ca1bf04a4c1062f272c038eca41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <common.h>
#include <debug_ll.h>

int printf(const char *fmt, ...)
{
	va_list args;
	uint i;
	char printbuffer[CFG_PBSIZE];

	va_start(args, fmt);
	i = vsprintf(printbuffer, fmt, args);
	va_end(args);

	puts_ll(printbuffer);

	return i;
}

int pr_print(int level, const char *fmt, ...)
{
	va_list args;
	uint i;
	char printbuffer[CFG_PBSIZE];

	va_start(args, fmt);
	i = vsprintf(printbuffer, fmt, args);
	va_end(args);

	puts_ll(printbuffer);

	return i;
}

int ctrlc(void)
{
	return 0;
}

void console_putc(unsigned int ch, char c)
{
	putc_ll(c);
}