return;
if (avahi_s_entry_group_is_empty(a->entry_group)) {
+ char t[64];
+ avahi_address_snprint(t, sizeof(t), &a->address);
+
+ avahi_log_info("Registering new address %s on %s.", t, a->interface->hardware->name);
if (avahi_server_add_address(m->server, a->entry_group, a->interface->hardware->index, a->interface->protocol, 0, NULL, &a->address) < 0) {
avahi_log_warn(__FILE__": avahi_server_add_address() failed: %s", avahi_strerror(m->server->error));
/* Clear the entry group */
if (a->entry_group && !avahi_s_entry_group_is_empty(a->entry_group)) {
+ char t[64];
+ avahi_address_snprint(t, sizeof(t), &a->address);
if (avahi_s_entry_group_get_state(a->entry_group) == AVAHI_ENTRY_GROUP_REGISTERING)
avahi_server_decrease_host_rr_pending(m->server);
+
+ avahi_log_info("Withdrawing address %s on %s.", t, a->interface->hardware->name);
avahi_s_entry_group_reset(a->entry_group);
}
#endif
if (state == AVAHI_SERVER_RUNNING) {
- avahi_log_info("Server startup complete. Host name is <%s>", avahi_server_get_host_name_fqdn(s));
+ avahi_log_info("Server startup complete. Host name is %s.", avahi_server_get_host_name_fqdn(s));
static_service_add_to_server();
remove_dns_server_entry_groups();
if (strcmp(g->filename, n) == 0)
return;
- avahi_log_info("Loading service file %s", n);
+ avahi_log_info("Loading service file %s.", n);
g = static_service_group_new(n);
if (static_service_group_load(g) < 0) {