From: Lennart Poettering Date: Thu, 16 Jun 2011 20:15:43 +0000 (+0200) Subject: timedated: rename a few things for clarification X-Git-Tag: v30~168 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05a4abb9146eebd75f5d9b9cac38f183818a9f6d;p=systemd timedated: rename a few things for clarification --- diff --git a/src/timedated.c b/src/timedated.c index ad7b881d..daa3d9c8 100644 --- a/src/timedated.c +++ b/src/timedated.c @@ -50,7 +50,7 @@ " \n" \ " \n" \ " \n" \ - " \n" \ + " \n" \ " \n" \ " \n" \ " \n" \ @@ -347,14 +347,14 @@ static DBusHandlerResult timedate_message_handler( } else if (dbus_message_is_method_call(message, "org.freedesktop.timedate1", "SetLocalRTC")) { dbus_bool_t lrtc; - dbus_bool_t correct_system; + dbus_bool_t fix_system; dbus_bool_t interactive; if (!dbus_message_get_args( message, &error, DBUS_TYPE_BOOLEAN, &lrtc, - DBUS_TYPE_BOOLEAN, &correct_system, + DBUS_TYPE_BOOLEAN, &fix_system, DBUS_TYPE_BOOLEAN, &interactive, DBUS_TYPE_INVALID)) return bus_send_error_reply(connection, message, &error, -EINVAL); @@ -384,7 +384,7 @@ static DBusHandlerResult timedate_message_handler( /* 3. Synchronize clocks */ assert_se(clock_gettime(CLOCK_REALTIME, &ts) == 0); - if (correct_system) { + if (fix_system) { struct tm tm; /* Sync system clock from RTC; first, @@ -422,7 +422,7 @@ static DBusHandlerResult timedate_message_handler( hwclock_set_time(tm); } - log_info("Changed local RTC setting to '%s'.", yes_no(local_rtc)); + log_error("RTC configured to %s time.", local_rtc ? "local" : "UTC"); changed = bus_properties_changed_new( "/org/freedesktop/timedate1",