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

Function try_tal_name

connectd/connectd.c:2218–2224  ·  view source on GitHub ↗

Looks up ptr in hash tree, to try to find name */

Source from the content-addressed store, hash-verified

2216
2217/* Looks up ptr in hash tree, to try to find name */
2218static const char *try_tal_name(const tal_t *ctx, const void *p)
2219{
2220 const tal_t *t = find_tal_ptr(NULL, p);
2221 if (t)
2222 return tal_name(t);
2223 return tal_fmt(ctx, "%p", p);
2224}
2225
2226static char *fd_mode_str(int fd)
2227{

Callers 1

dev_report_fdsFunction · 0.85

Calls 2

find_tal_ptrFunction · 0.85
tal_nameFunction · 0.85

Tested by

no test coverage detected