MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fatal_vfmt

Function fatal_vfmt

lightningd/log.c:841–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841void fatal_vfmt(const char *fmt, va_list ap)
842{
843 va_list ap2;
844
845 /* You are not allowed to re-use va_lists, so make a copy. */
846 va_copy(ap2, ap);
847 vfprintf(stderr, fmt, ap);
848 fprintf(stderr, "\n");
849
850 if (!crashlog)
851 exit(1);
852
853 logv(crashlog, LOG_BROKEN, NULL, true, fmt, ap2);
854 abort();
855 /* va_copy() must be matched with va_end(), even if unreachable. */
856 va_end(ap2);
857}
858
859void fatal(const char *fmt, ...)
860{

Callers 2

db_fatalFunction · 0.85
fatalFunction · 0.85

Calls 2

logvFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected