tree-wide: port everything over to new sd-id128 compund literal bliss
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user