1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: print friendly name when peer shows up

This commit is contained in:
Derek Dai 2017-02-20 10:49:20 +08:00
parent 6e48e1092a
commit 3e41e488a5
No known key found for this signature in database
GPG key ID: E109CC97553EF009
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ static inline _t wfd_arg_get_##_s(const struct wfd_arg *a) \
} }
#define wfd_arg_setter(_t, _s, _S) \ #define wfd_arg_setter(_t, _s, _S) \
static inline void wfd_arg_set_##_t(struct wfd_arg *a, _t v) \ static inline void wfd_arg_set_##_s(struct wfd_arg *a, _t v) \
{ \ { \
assert(a); \ assert(a); \
assert(!a->type || WFD_ARG_##_S == a->type); \ assert(!a->type || WFD_ARG_##_S == a->type); \

View file

@ -314,7 +314,8 @@ void ctl_fn_peer_new(struct ctl_peer *p)
union wfd_sube sube; union wfd_sube sube;
int r; int r;
log_debug("new peer %s shows up: '%s'", log_debug("new peer %s (%s) shows up, wfd_subelems: '%s'",
p->friendly_name,
p->label, p->label,
p->wfd_subelements); p->wfd_subelements);