mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
4ffda340d3
And turn "" includes into full-path (which makes it easier to put config.h first, and finds some cases check-includes.sh missed previously). config.h sets _GNU_SOURCE which really needs to be done before any '#includes': we mainly got away with it with glibc, but other platforms like Alpine may have stricter requirements. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
440 B
C
20 lines
440 B
C
#include "config.h"
|
|
#include <ccan/tal/str/str.h>
|
|
#include <common/peer_billboard.h>
|
|
#include <common/status.h>
|
|
#include <common/status_wiregen.h>
|
|
|
|
void peer_billboard(bool perm, const char *fmt, ...)
|
|
{
|
|
va_list ap;
|
|
char *str;
|
|
|
|
va_start(ap, fmt);
|
|
str = tal_vfmt(NULL, fmt, ap);
|
|
va_end(ap);
|
|
|
|
status_debug("billboard%s: %s", perm ? " perm" : "", str);
|
|
status_send(take(towire_status_peer_billboard(NULL, perm, str)));
|
|
tal_free(str);
|
|
}
|