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

Function plugin_errv

plugins/libplugin.c:1987–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1985}
1986
1987void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap)
1988{
1989 va_list ap2;
1990
1991 /* In case it gets consumed, make a copy. */
1992 va_copy(ap2, ap);
1993
1994 plugin_logv(p, LOG_BROKEN, fmt, ap);
1995 vfprintf(stderr, fmt, ap2);
1996 fprintf(stderr, "\n");
1997 plugin_exit(p, 1);
1998 va_end(ap2);
1999}
2000
2001void NORETURN plugin_err(struct plugin *p, const char *fmt, ...)
2002{

Callers 1

plugin_errFunction · 0.85

Calls 2

plugin_logvFunction · 0.85
plugin_exitFunction · 0.85

Tested by

no test coverage detected