You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/embed/unix/common.c

16 lines
352 B

#include <stdio.h>
#include <stdlib.h>
#include "common.h"
void __attribute__((noreturn)) __fatal_error(const char *msg, const char *file, int line, const char *func) {
printf("\nFATAL ERROR:\n%s\n", msg);
if (file) {
printf("File: %s:%d\n", file, line);
}
if (func) {
printf("Func: %s\n", func);
}
exit(1);
}