summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-12-16 19:55:04 -0800
committerHans Dedecker <dedeckeh@gmail.com>2017-12-17 20:02:02 +0100
commit7aa2594c5a127d92fa8f04328ac7b43e595bcaa7 (patch)
tree9dbfea93d259084641f30172efc65692d0540205 /src/ubus.c
parent750e457e3000187b85906814a2529ede24775325 (diff)
odhcpd: Replace strerror(errno) with %m format
Saves a few bytes. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/ubus.c')
-rw-r--r--src/ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ubus.c b/src/ubus.c
index 19b14be..6af5911 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -412,7 +412,7 @@ bool ubus_has_prefix(const char *name, const char *ifname)
int ubus_init(void)
{
if (!(ubus = ubus_connect(NULL))) {
- syslog(LOG_ERR, "Unable to connect to ubus: %s", strerror(errno));
+ syslog(LOG_ERR, "Unable to connect to ubus: %m");
return -1;
}