Newer
Older
barebox / pbl / misc.c
@Rouven Czerwinski Rouven Czerwinski on 7 Aug 2019 291 bytes pbl: support panic with log output
#include <common.h>
#include <init.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>

void __noreturn hang(void)
{
	while (1);
}

void __noreturn panic(const char *fmt, ...)
{
	va_list args;

	va_start(args, fmt);
	printf(fmt, args);
	va_end(args);
	while(1);
}