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

Function log_prefix_new

lightningd/log.c:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98};
99
100static struct log_prefix *log_prefix_new(const tal_t *ctx,
101 const char *prefix TAKES)
102{
103 struct log_prefix *lp = tal(ctx, struct log_prefix);
104 lp->refcnt = 1;
105 lp->prefix = tal_strdup(lp, prefix);
106 return lp;
107}
108
109static void ringbuf_span(const struct log_book *log,
110 size_t start, size_t len,

Callers 1

new_loggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected