aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-30 13:50:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-30 21:35:48 (GMT)
commit880de8851e7fbf888c68d3eadc0e8a63f41581fd (patch)
treea2c548fbfbe0c716df58c1b7a059bf6dd83c756a /src
parent03ed332407cb2c2774593854d232ab1b2c67f952 (diff)
downloadhostap-880de8851e7fbf888c68d3eadc0e8a63f41581fd.zip
hostap-880de8851e7fbf888c68d3eadc0e8a63f41581fd.tar.gz
hostap-880de8851e7fbf888c68d3eadc0e8a63f41581fd.tar.bz2
nl80211: Print frame registration match on same debug line
This makes debug log a bit more readable. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index e1f5860..1453569 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3976,15 +3976,16 @@ static int nl80211_register_frame(struct i802_bss *bss,
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
int ret = -1;
+ char buf[30];
msg = nlmsg_alloc();
if (!msg)
return -1;
- wpa_printf(MSG_DEBUG, "nl80211: Register frame type=0x%x nl_handle=%p",
- type, nl_handle);
- wpa_hexdump(MSG_DEBUG, "nl80211: Register frame match",
- match, match_len);
+ buf[0] = '\0';
+ wpa_snprintf_hex(buf, sizeof(buf), match, match_len);
+ wpa_printf(MSG_DEBUG, "nl80211: Register frame type=0x%x nl_handle=%p match=%s",
+ type, nl_handle, buf);
nl80211_cmd(drv, msg, 0, NL80211_CMD_REGISTER_ACTION);