summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-upload-journal.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-08-20 10:54:49 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-20 11:09:48 +0200
commit85b55869bc1065754fdd35ef43ff324cc5e3ef2e (patch)
tree013fe377acb8a8617c700af9b14fa3be95acb06c /src/journal-remote/journal-upload-journal.c
parentsd-id128: add compound literal love to sd_id128_to_string() + id128_to_uuid_s... (diff)
downloadsystemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.tar.xz
systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.zip
tree-wide: port everything over to new sd-id128 compund literal bliss
Diffstat (limited to 'src/journal-remote/journal-upload-journal.c')
-rw-r--r--src/journal-remote/journal-upload-journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal-remote/journal-upload-journal.c b/src/journal-remote/journal-upload-journal.c
index 899f47eea4..164ed6590c 100644
--- a/src/journal-remote/journal-upload-journal.c
+++ b/src/journal-remote/journal-upload-journal.c
@@ -103,14 +103,13 @@ static ssize_t write_entry(char *buf, size_t size, Uploader *u) {
_fallthrough_;
case ENTRY_BOOT_ID: {
sd_id128_t boot_id;
- char sid[SD_ID128_STRING_MAX];
r = sd_journal_get_monotonic_usec(u->journal, NULL, &boot_id);
if (r < 0)
return log_error_errno(r, "Failed to get monotonic timestamp: %m");
r = snprintf(buf + pos, size - pos,
- "_BOOT_ID=%s\n", sd_id128_to_string(boot_id, sid));
+ "_BOOT_ID=%s\n", SD_ID128_TO_STRING(boot_id));
assert(r >= 0);
if ((size_t) r > size - pos)
/* not enough space */