not using %m printf handler, as late errno interpration over bus may be problematic

This commit is contained in:
Martin Willi
2007-04-12 08:52:36 +00:00
parent 1dad08b035
commit db97fd8298
4 changed files with 40 additions and 27 deletions
+2 -2
View File
@@ -571,7 +571,7 @@ static status_t netlink_send(int socket, struct nlmsghdr *in,
continue;
}
pthread_mutex_unlock(&mutex);
DBG1(DBG_KNL, "error sending to netlink socket: %m");
DBG1(DBG_KNL, "error sending to netlink socket: %s", strerror(errno));
return FAILED;
}
break;
@@ -601,7 +601,7 @@ static status_t netlink_send(int socket, struct nlmsghdr *in,
/* interrupted, try again */
continue;
}
DBG1(DBG_IKE, "error reading from netlink socket: %m");
DBG1(DBG_IKE, "error reading from netlink socket: %s", strerror(errno));
pthread_mutex_unlock(&mutex);
return FAILED;
}