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

Function log_prefix_new

lightningd/log.c:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66};
67
68static struct log_prefix *log_prefix_new(const tal_t *ctx,
69 const char *prefix TAKES)
70{
71 struct log_prefix *lp = tal(ctx, struct log_prefix);
72 lp->refcnt = 1;
73 lp->prefix = tal_strdup(lp, prefix);
74 return lp;
75}
76
77static void log_prefix_drop(struct log_prefix *lp)
78{

Callers 1

new_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected