diff options
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machinectl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index beab50e315..1bae6d8874 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -508,7 +508,6 @@ static void machine_status_info_clear(MachineStatusInfo *info) { static void print_machine_status_info(sd_bus *bus, MachineStatusInfo *i) { char since1[FORMAT_TIMESTAMP_RELATIVE_MAX]; - char since2[FORMAT_TIMESTAMP_MAX]; _cleanup_free_ char *addresses = NULL; const char *s1, *s2; int ifi = -1; @@ -524,7 +523,7 @@ static void print_machine_status_info(sd_bus *bus, MachineStatusInfo *i) { putchar('\n'); s1 = format_timestamp_relative(since1, sizeof(since1), i->timestamp.realtime); - s2 = format_timestamp(since2, sizeof(since2), i->timestamp.realtime); + s2 = FORMAT_TIMESTAMP(i->timestamp.realtime); if (s1) printf("\t Since: %s; %s\n", s2, s1); @@ -829,7 +828,6 @@ typedef struct ImageStatusInfo { static void print_image_status_info(sd_bus *bus, ImageStatusInfo *i) { char ts_relative[FORMAT_TIMESTAMP_RELATIVE_MAX]; - char ts_absolute[FORMAT_TIMESTAMP_MAX]; char bs[FORMAT_BYTES_MAX]; char bs_exclusive[FORMAT_BYTES_MAX]; const char *s1, *s2, *s3, *s4; @@ -860,14 +858,14 @@ static void print_image_status_info(sd_bus *bus, ImageStatusInfo *i) { i->read_only ? ansi_normal() : ""); s1 = format_timestamp_relative(ts_relative, sizeof(ts_relative), i->crtime); - s2 = format_timestamp(ts_absolute, sizeof(ts_absolute), i->crtime); + s2 = FORMAT_TIMESTAMP(i->crtime); if (s1 && s2) printf("\t Created: %s; %s\n", s2, s1); else if (s2) printf("\t Created: %s\n", s2); s1 = format_timestamp_relative(ts_relative, sizeof(ts_relative), i->mtime); - s2 = format_timestamp(ts_absolute, sizeof(ts_absolute), i->mtime); + s2 = FORMAT_TIMESTAMP(i->mtime); if (s1 && s2) printf("\tModified: %s; %s\n", s2, s1); else if (s2) |