anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0228-timedatectl-trim-non-local-RTC-warning-to-80-chars-w.patch

923a60
From 205750e2144e942bb6c04bb901684cc1aea82a26 Mon Sep 17 00:00:00 2001
923a60
From: =?UTF-8?q?Vedran=20Mileti=C4=87?= <rivanvx@gmail.com>
923a60
Date: Thu, 2 Jul 2015 00:13:31 +0200
923a60
Subject: [PATCH] timedatectl: trim non-local RTC warning to 80 chars wide
923a60
923a60
(cherry picked from commit ab59f4123a6f9c32953e522cc9afc5fc610d59ca)
923a60
923a60
Cherry-picked from: ab59f41
923a60
Resolves: #1222517
923a60
---
923a60
 src/timedate/timedatectl.c | 11 ++++++-----
923a60
 1 file changed, 6 insertions(+), 5 deletions(-)
923a60
923a60
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
923a60
index 4d89886736..1accccb688 100644
923a60
--- a/src/timedate/timedatectl.c
923a60
+++ b/src/timedate/timedatectl.c
923a60
@@ -190,11 +190,12 @@ static void print_status_info(const StatusInfo *i) {
923a60
 
923a60
         if (i->rtc_local)
923a60
                 fputs("\n" ANSI_HIGHLIGHT_ON
923a60
-                      "Warning: The system is configured to read the RTC time in the local time zone. This\n"
923a60
-                      "         mode can not be fully supported. It will create various problems with time\n"
923a60
-                      "         zone changes and daylight saving time adjustments. The RTC time is never updated,\n"
923a60
-                      "         it relies on external facilities to maintain it. If at all possible, use\n"
923a60
-                      "         RTC in UTC by calling 'timedatectl set-local-rtc 0'" ANSI_HIGHLIGHT_OFF ".\n", stdout);
923a60
+                      "Warning: The system is configured to read the RTC time in the local time zone.\n"
923a60
+                      "         This mode can not be fully supported. It will create various problems\n"
923a60
+                      "         with time zone changes and daylight saving time adjustments. The RTC\n"
923a60
+                      "         time is never updated, it relies on external facilities to maintain it.\n"
923a60
+                      "         If at all possible, use RTC in UTC by calling\n"
923a60
+                      "         'timedatectl set-local-rtc 0'" ANSI_HIGHLIGHT_OFF ".\n", stdout);
923a60
 }
923a60
 
923a60
 static int show_status(sd_bus *bus, char **args, unsigned n) {