1 #include <ccan/tal/str/str.h>
2 #include <common/peer_billboard.h>
3 #include <common/status.h>
4 #include <common/status_wiregen.h>
5 
peer_billboard(bool perm,const char * fmt,...)6 void peer_billboard(bool perm, const char *fmt, ...)
7 {
8 	va_list ap;
9 	char *str;
10 
11 	va_start(ap, fmt);
12 	str = tal_vfmt(NULL, fmt, ap);
13 	va_end(ap);
14 
15 	status_debug("billboard%s: %s", perm ? " perm" : "", str);
16 	status_send(take(towire_status_peer_billboard(NULL, perm, str)));
17 	tal_free(str);
18 }
19