MCPcopy Create free account
hub / github.com/coreboot/coreboot / die

Function die

tests/stubs/die.c:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <tests/test.h>
5
6void die(const char *msg, ...)
7{
8 /* die() can be called in middle a function, so we should not allow for it to return */
9 static char msg_buf[256];
10 va_list v;
11 va_start(v, msg);
12 vsnprintf(msg_buf, ARRAY_SIZE(msg_buf), msg, v);
13 va_end(v);
14 fail_msg("%s", msg_buf);
15}

Callers

nothing calls this directly

Calls 1

vsnprintfFunction · 0.50

Tested by

no test coverage detected