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
/
core
/
dbus.c
diff --git
a/src/core/dbus.c
b/src/core/dbus.c
index 7291bdc3f367550deb11ba2da681298faa407166..925fac96b4b4c138b2788a3279c1aaf2c92d8ee4 100644
(file)
--- a/
src/core/dbus.c
+++ b/
src/core/dbus.c
@@
-624,7
+624,7
@@
static int bus_on_connection(sd_event_source *s, int fd, uint32_t revents, void
nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
if (nfd < 0) {
nfd = accept4(fd, NULL, NULL, SOCK_NONBLOCK|SOCK_CLOEXEC);
if (nfd < 0) {
- log_warning
(
"Failed to accept private connection, ignoring: %m");
+ log_warning
_errno(errno,
"Failed to accept private connection, ignoring: %m");
return 0;
}
return 0;
}
@@
-959,19
+959,19
@@
static int bus_init_private(Manager *m) {
fd = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
if (fd < 0) {
fd = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
if (fd < 0) {
- log_error
(
"Failed to allocate private socket: %m");
+ log_error
_errno(errno,
"Failed to allocate private socket: %m");
return -errno;
}
r = bind(fd, &sa.sa, salen);
if (r < 0) {
return -errno;
}
r = bind(fd, &sa.sa, salen);
if (r < 0) {
- log_error
(
"Failed to bind private socket: %m");
+ log_error
_errno(errno,
"Failed to bind private socket: %m");
return -errno;
}
r = listen(fd, SOMAXCONN);
if (r < 0) {
return -errno;
}
r = listen(fd, SOMAXCONN);
if (r < 0) {
- log_error
(
"Failed to make private socket listening: %m");
+ log_error
_errno(errno,
"Failed to make private socket listening: %m");
return -errno;
}
return -errno;
}