chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: use log_*_errno whenever %m is in the format string
[elogind.git]
/
src
/
machine
/
machinectl.c
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index 6db9e5c91bfab956beee7f3e9645e443ecdc9436..5ea4f4b0d9c0b136d2e98dc3c07062ad648e1477 100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-726,7
+726,7
@@
static int login_machine(sd_bus *bus, char **args, unsigned n) {
pty = ptsname(master);
if (!pty) {
pty = ptsname(master);
if (!pty) {
- log_error
(
"Failed to get pty name: %m");
+ log_error
_errno(errno,
"Failed to get pty name: %m");
return -errno;
}
return -errno;
}
@@
-745,7
+745,7
@@
static int login_machine(sd_bus *bus, char **args, unsigned n) {
return log_oom();
if (unlockpt(master) < 0) {
return log_oom();
if (unlockpt(master) < 0) {
- log_error
(
"Failed to unlock tty: %m");
+ log_error
_errno(errno,
"Failed to unlock tty: %m");
return -errno;
}
return -errno;
}