aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-30 14:50:08 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-30 21:35:48 (GMT)
commitef93abded7784a160b1d3f4386746d61e937cb61 (patch)
tree7f3917580b391b21c28634fd5393d1ff8f2ef87a /wpa_supplicant
parent35f3d3ed5fa86475ede6a4549033be050cceed3e (diff)
downloadhostap-ef93abded7784a160b1d3f4386746d61e937cb61.zip
hostap-ef93abded7784a160b1d3f4386746d61e937cb61.tar.gz
hostap-ef93abded7784a160b1d3f4386746d61e937cb61.tar.bz2
WPS: Clean up UUID debug print
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index fc4ffde..bd4d166 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1273,7 +1273,9 @@ static u16 wps_fix_config_methods(u16 config_methods)
static void wpas_wps_set_uuid(struct wpa_supplicant *wpa_s,
struct wps_context *wps)
{
- wpa_printf(MSG_DEBUG, "WPS: Set UUID for interface %s", wpa_s->ifname);
+ char buf[50];
+ const char *src;
+
if (is_nil_uuid(wpa_s->conf->uuid)) {
struct wpa_supplicant *first;
first = wpa_s->global->ifaces;
@@ -1284,18 +1286,18 @@ static void wpas_wps_set_uuid(struct wpa_supplicant *wpa_s,
os_memcpy(wps->uuid,
wpa_s->global->ifaces->wps->uuid,
WPS_UUID_LEN);
- wpa_hexdump(MSG_DEBUG, "WPS: UUID from the first "
- "interface", wps->uuid, WPS_UUID_LEN);
+ src = "from the first interface";
} else {
uuid_gen_mac_addr(wpa_s->own_addr, wps->uuid);
- wpa_hexdump(MSG_DEBUG, "WPS: UUID based on MAC "
- "address", wps->uuid, WPS_UUID_LEN);
+ src = "based on MAC address";
}
} else {
os_memcpy(wps->uuid, wpa_s->conf->uuid, WPS_UUID_LEN);
- wpa_hexdump(MSG_DEBUG, "WPS: UUID based on configuration",
- wps->uuid, WPS_UUID_LEN);
+ src = "based on configuration";
}
+
+ uuid_bin2str(wps->uuid, buf, sizeof(buf));
+ wpa_dbg(wpa_s, MSG_DEBUG, "WPS: UUID %s: %s", src, buf);
}