summaryrefslogtreecommitdiffstats
path: root/src/test/test-boot-timestamps.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-01 14:11:30 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-09 11:03:35 +0200
commit04f5c018cea46761e16880ea98d1412ba41410cf (patch)
tree2de6e30a12503b3a150a185380d18c785cb1b041 /src/test/test-boot-timestamps.c
parentbasic/time-util: add FORMAT_TIMESTAMP (diff)
downloadsystemd-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.c8
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;
}