]> git.meshlink.io Git - catta/commitdiff
* be a little bit more verbose about published IP addresses
authorLennart Poettering <lennart@poettering.net>
Sun, 28 Aug 2005 01:31:34 +0000 (01:31 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 28 Aug 2005 01:31:34 +0000 (01:31 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@464 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/iface.c
avahi-daemon/main.c
avahi-daemon/static-services.c

index f9c3103e4a3250676b7885cc5748fec06e8106f1..ba232e6f358dfc15d044dedb2d24ed4ab82c0f2d 100644 (file)
@@ -61,6 +61,10 @@ static void update_address_rr(AvahiInterfaceMonitor *m, AvahiInterfaceAddress *a
             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));
@@ -76,9 +80,13 @@ static void update_address_rr(AvahiInterfaceMonitor *m, AvahiInterfaceAddress *a
         /* 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);
         }
index 75d01aabc25eb0ee7f1438c5cec7fab38b8fb777..7a3e8a4a45f1c523513cde92e93dd3a4814f78af 100644 (file)
@@ -220,7 +220,7 @@ static void server_callback(AvahiServer *s, AvahiServerState state, void *userda
 #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();
index 09d7b1bac6f190ed5223564dffef3cd70b67d26c..a1ec8d073cfdf2a7c910332eb6a080c0d06a7303 100644 (file)
@@ -585,7 +585,7 @@ static void load_file(char *n) {
         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) {