mirror of
https://git.busybox.net/udhcp
synced 2025-10-14 01:59:23 +08:00
improved error message
This commit is contained in:
3
socket.c
3
socket.c
@@ -60,7 +60,8 @@ int read_interface(char *interface, int *ifindex, u_int32_t *addr, unsigned char
|
||||
*addr = sin->sin_addr.s_addr;
|
||||
DEBUG(LOG_INFO, "%s (our ip) = %s", ifr.ifr_name, inet_ntoa(sin->sin_addr));
|
||||
} else {
|
||||
LOG(LOG_ERR, "SIOCGIFADDR failed!: %s", strerror(errno));
|
||||
LOG(LOG_ERR, "SIOCGIFADDR failed, is the interface up and configured?: %s",
|
||||
strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user