aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-04-06 12:10:36 +0300
committerJouni Malinen <j@w1.fi>2012-04-06 12:10:36 +0300
commit9d0537479695fd298dedb44afc7bae49d063e8d2 (patch)
tree8adb359cbcaae3fb281da7ee63e0c6c5a946bf92 /hostapd
parentbae489d292a3df75ad22d5cc8858e269c6bdf759 (diff)
downloadexternal_wpa_supplicant_8_ti-9d0537479695fd298dedb44afc7bae49d063e8d2.zip
external_wpa_supplicant_8_ti-9d0537479695fd298dedb44afc7bae49d063e8d2.tar.gz
external_wpa_supplicant_8_ti-9d0537479695fd298dedb44afc7bae49d063e8d2.tar.bz2
Make bind failure messages unique
This helps someone know which part of the code is complaining. Signed-hostap: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
-rw-r--r--hostapd/hlr_auc_gw.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 63fe557..52b3bd8 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -893,7 +893,7 @@ int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
}
if (bind(s, (struct sockaddr *) &addr, sizeof(addr)) <
0) {
- perror("bind(PF_UNIX)");
+ perror("hostapd-ctrl-iface: bind(PF_UNIX)");
goto fail;
}
wpa_printf(MSG_DEBUG, "Successfully replaced leftover "
diff --git a/hostapd/hlr_auc_gw.c b/hostapd/hlr_auc_gw.c
index b59ea1b..3c3a758 100644
--- a/hostapd/hlr_auc_gw.c
+++ b/hostapd/hlr_auc_gw.c
@@ -96,7 +96,7 @@ static int open_socket(const char *path)
addr.sun_family = AF_UNIX;
os_strlcpy(addr.sun_path, path, sizeof(addr.sun_path));
if (bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- perror("bind(PF_UNIX)");
+ perror("hlr-auc-gw: bind(PF_UNIX)");
close(s);
return -1;
}