summaryrefslogtreecommitdiff
path: root/util/uio_usbdebug/console/printk.c
blob: e0aa20169e18355697437829f519924501586c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#include <stdio.h>
#include <stdarg.h>
#include <console/console.h>

int printk(int msg_level, const char *const fmt, ...)
{
	va_list args;
	int i;

	va_start(args, fmt);
	i = vfprintf(stderr, fmt, args);
	va_end(args);

	return i;
}