diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-01 14:11:30 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-09 11:03:35 +0200 |
commit | 04f5c018cea46761e16880ea98d1412ba41410cf (patch) | |
tree | 2de6e30a12503b3a150a185380d18c785cb1b041 /src/test/test-boot-timestamps.c | |
parent | basic/time-util: add FORMAT_TIMESTAMP (diff) | |
download | systemd-04f5c018cea46761e16880ea98d1412ba41410cf.tar.xz systemd-04f5c018cea46761e16880ea98d1412ba41410cf.zip |
tree-wide: use FORMAT_TIMESTAMP()
Diffstat (limited to 'src/test/test-boot-timestamps.c')
-rw-r--r-- | src/test/test-boot-timestamps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-boot-timestamps.c b/src/test/test-boot-timestamps.c index ae5b5821f0..15189df60b 100644 --- a/src/test/test-boot-timestamps.c +++ b/src/test/test-boot-timestamps.c @@ -51,7 +51,7 @@ static int test_efi_loader(void) { } static int test_boot_timestamps(void) { - char s[MAX(FORMAT_TIMESPAN_MAX, FORMAT_TIMESTAMP_MAX)]; + char s[FORMAT_TIMESPAN_MAX]; dual_timestamp fw, l, k; int r; @@ -67,9 +67,9 @@ static int test_boot_timestamps(void) { log_info("Firmware began %s before kernel.", format_timespan(s, sizeof(s), fw.monotonic, 0)); log_info("Loader began %s before kernel.", format_timespan(s, sizeof(s), l.monotonic, 0)); - log_info("Firmware began %s.", format_timestamp(s, sizeof(s), fw.realtime)); - log_info("Loader began %s.", format_timestamp(s, sizeof(s), l.realtime)); - log_info("Kernel began %s.", format_timestamp(s, sizeof(s), k.realtime)); + log_info("Firmware began %s.", FORMAT_TIMESTAMP(fw.realtime)); + log_info("Loader began %s.", FORMAT_TIMESTAMP(l.realtime)); + log_info("Kernel began %s.", FORMAT_TIMESTAMP(k.realtime)); return 1; } |