summaryrefslogtreecommitdiff
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:19:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:29:21 +0100
commitda927ba997d68401563b927f92e6e40e021a8e5c (patch)
tree71764cd998aef07b8943c5206c9307a93ba9c528 /src/network/networkd-address.c
parent0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff)
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r--src/network/networkd-address.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index b85044d292..e95184b8ff 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -125,7 +125,7 @@ int address_drop(Address *address, Link *link,
r = sd_rtnl_message_addr_set_prefixlen(req, address->prefixlen);
if (r < 0) {
- log_error_errno(-r, "Could not set prefixlen: %m");
+ log_error_errno(r, "Could not set prefixlen: %m");
return r;
}
@@ -141,7 +141,7 @@ int address_drop(Address *address, Link *link,
r = sd_rtnl_call_async(link->manager->rtnl, req, callback, link, 0, NULL);
if (r < 0) {
- log_error_errno(-r, "Could not send rtnetlink message: %m");
+ log_error_errno(r, "Could not send rtnetlink message: %m");
return r;
}
@@ -171,19 +171,19 @@ int address_update(Address *address, Link *link,
r = sd_rtnl_message_addr_set_prefixlen(req, address->prefixlen);
if (r < 0) {
- log_error_errno(-r, "Could not set prefixlen: %m");
+ log_error_errno(r, "Could not set prefixlen: %m");
return r;
}
r = sd_rtnl_message_addr_set_flags(req, IFA_F_PERMANENT);
if (r < 0) {
- log_error_errno(-r, "Could not set flags: %m");
+ log_error_errno(r, "Could not set flags: %m");
return r;
}
r = sd_rtnl_message_addr_set_scope(req, address->scope);
if (r < 0) {
- log_error_errno(-r, "Could not set scope: %m");
+ log_error_errno(r, "Could not set scope: %m");
return r;
}
@@ -224,7 +224,7 @@ int address_update(Address *address, Link *link,
r = sd_rtnl_call_async(link->manager->rtnl, req, callback, link, 0, NULL);
if (r < 0) {
- log_error_errno(-r, "Could not send rtnetlink message: %m");
+ log_error_errno(r, "Could not send rtnetlink message: %m");
return r;
}
@@ -320,19 +320,19 @@ int address_configure(Address *address, Link *link,
r = sd_rtnl_message_addr_set_prefixlen(req, address->prefixlen);
if (r < 0) {
- log_error_errno(-r, "Could not set prefixlen: %m");
+ log_error_errno(r, "Could not set prefixlen: %m");
return r;
}
r = sd_rtnl_message_addr_set_flags(req, IFA_F_PERMANENT);
if (r < 0) {
- log_error_errno(-r, "Could not set flags: %m");
+ log_error_errno(r, "Could not set flags: %m");
return r;
}
r = sd_rtnl_message_addr_set_scope(req, address->scope);
if (r < 0) {
- log_error_errno(-r, "Could not set scope: %m");
+ log_error_errno(r, "Could not set scope: %m");
return r;
}
@@ -386,7 +386,7 @@ int address_configure(Address *address, Link *link,
r = sd_rtnl_call_async(link->manager->rtnl, req, callback, link, 0, NULL);
if (r < 0) {
- log_error_errno(-r, "Could not send rtnetlink message: %m");
+ log_error_errno(r, "Could not send rtnetlink message: %m");
return r;
}