X Tutup
Skip to content

Commit 111a3aa

Browse files
committed
partition, random-seed, logind: fix log messages with %m
We would print "...: Success", which is not too terrible, but not pretty either.
1 parent aca591a commit 111a3aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/login/logind.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ static int manager_enumerate_seats(Manager *m) {
268268
s = hashmap_get(m->seats, de->d_name);
269269
if (!s) {
270270
if (unlinkat(dirfd(d), de->d_name, 0) < 0)
271-
log_warning("Failed to remove /run/systemd/seats/%s: %m",
272-
de->d_name);
271+
log_warning_errno(errno, "Failed to remove /run/systemd/seats/%s: %m",
272+
de->d_name);
273273
continue;
274274
}
275275

src/partition/repart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3830,7 +3830,7 @@ static int parse_efi_variable_factory_reset(void) {
38303830

38313831
arg_factory_reset = r;
38323832
if (r)
3833-
log_notice("Honouring factory reset requested via EFI variable FactoryReset: %m");
3833+
log_notice("Factory reset requested via EFI variable FactoryReset.");
38343834

38353835
return 0;
38363836
}

src/random-seed/random-seed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int run(int argc, char *argv[]) {
262262
if (k < 0)
263263
log_debug_errno(errno, "Failed to read random data with getrandom(), falling back to /dev/urandom: %m");
264264
else if ((size_t) k < buf_size)
265-
log_debug("Short read from getrandom(), falling back to /dev/urandom: %m");
265+
log_debug("Short read from getrandom(), falling back to /dev/urandom.");
266266
else
267267
getrandom_worked = true;
268268

0 commit comments

Comments
 (0)
X Tutup