timedatectl: fix status output (#7696)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Dec 2017 10:15:50 +0000 (19:15 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Dec 2017 10:15:50 +0000 (11:15 +0100)
Follow-up for 3ec530a1890925efe347f739917dd4078c1b1942.

Fixes #7693.

src/timedate/timedatectl.c

index d80a917..e851b4d 100644 (file)
@@ -129,8 +129,8 @@ static void print_status_info(const StatusInfo *i) {
                "systemd-timesyncd.service active: %s\n"
                "                 RTC in local TZ: %s\n",
                strna(i->timezone), have_time && n > 0 ? a : "n/a",
-               i->ntp_capable ? yes_no(i->ntp_enabled) : "n/a",
                yes_no(i->ntp_synced),
+               i->ntp_capable ? yes_no(i->ntp_enabled) : "n/a",
                yes_no(i->rtc_local));
 
         if (i->rtc_local)