X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftimedate%2Ftimedatectl.c;h=f5b5f0ca84e9accc702b1a4f8e4164de42ee8bd2;hb=7c2d80944afb4196f2eff614e8da1450dffcbeaa;hp=d379bccd7f4707194a161ae8ede9eff585b3e09b;hpb=bd5ce8e9fc10a593822344c098ccbe8c47fe34e9;p=elogind.git diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index d379bccd7..f5b5f0ca8 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -173,10 +173,10 @@ static void print_status_info(StatusInfo *i) { zero(tm); assert_se(strftime(b, sizeof(b), "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&tc, &tm)) > 0); char_array_0(b); - printf(" Last DST change: DST became %s\n" + printf(" Last DST change: DST %s at\n" " %s\n" " %s\n", - is_dstc ? "active" : "inactive", a, b); + is_dstc ? "began" : "ended", a, b); t = tn - 1; zero(tm); @@ -186,10 +186,10 @@ static void print_status_info(StatusInfo *i) { zero(tm); assert_se(strftime(b, sizeof(b), "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&tn, &tm)) > 0); char_array_0(b); - printf(" Next DST change: DST will become %s, the clock will jump %s\n" + printf(" Next DST change: DST %s (the clock jumps %s) at\n" " %s\n" " %s\n", - is_dstn ? "active" : "inactive", jump_str(dn, s, sizeof(s)), a, b); + is_dstn ? "begins" : "ends", jump_str(dn, s, sizeof(s)), a, b); free(zc); free(zn); @@ -425,7 +425,6 @@ static int list_timezones(DBusConnection *bus, char **args, unsigned n) { _cleanup_fclose_ FILE *f = NULL; _cleanup_strv_free_ char **zones = NULL; size_t n_zones = 0; - char **i; assert(args); assert(n == 1); @@ -487,8 +486,7 @@ static int list_timezones(DBusConnection *bus, char **args, unsigned n) { pager_open_if_enabled(); strv_sort(zones); - STRV_FOREACH(i, zones) - puts(*i); + strv_print(zones); return 0; } @@ -551,7 +549,6 @@ static int parse_argv(int argc, char *argv[]) { case ARG_VERSION: puts(PACKAGE_STRING); - puts(DISTRIBUTION); puts(SYSTEMD_FEATURES); return 0;