diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-12 15:04:27 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-11-12 15:04:27 +0100 |
commit | be929dbe2dffa82ca1f91538f56a1bb0490000bd (patch) | |
tree | bb51b76662ce49aab71af132487c28d8c664b3f0 /src/log.h | |
parent | 5ddca2604f03fc33a427ebd6e49fda7d6967f993 (diff) | |
download | fastd-be929dbe2dffa82ca1f91538f56a1bb0490000bd.tar fastd-be929dbe2dffa82ca1f91538f56a1bb0490000bd.zip |
Use peer specifier from log instead of the peer name for the status output
This fixes a crash when status sockets are used with peers without names, but
the JSON output format is changed: named peers will now use "<name>" as key
instead of "name".
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -54,6 +54,7 @@ typedef enum fastd_loglevel { size_t fastd_snprint_peer_address(char *buffer, size_t size, const fastd_peer_address_t *address, const char *iface, bool bind_address, bool hide); +size_t fastd_snprint_peer_str(char *buffer, size_t size, const fastd_peer_t *peer); void fastd_logf(const fastd_loglevel_t level, const char *format, ...); |