daandemeyer / rpms / systemd

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