chiark / gitweb /
hostnamed: Fix "SetStaticHostname" debug output
[elogind.git] / src / hostnamed.c
index 9e8825da75599e3db0b27421d37910fe424c0fa1..0db78c096b82f49d4a0c274607795aedef4e9af5 100644 (file)
@@ -396,7 +396,7 @@ static DBusHandlerResult hostname_message_handler(
                                 return bus_send_error_reply(connection, message, NULL, r);
                         }
 
-                        log_info("Changed static host name to '%s'", strempty(data[PROP_HOSTNAME]));
+                        log_info("Changed static host name to '%s'", strempty(data[PROP_STATIC_HOSTNAME]));
 
                         changed = bus_properties_changed_new(
                                         "/org/freedesktop/hostname1",