diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-08-02 11:53:06 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:53 -0400 |
commit | ece561919326236c7fb791a5e883f0eb76af029e (patch) | |
tree | 69d81daf8f8de4182ca89ab3b722defc585ffa80 /drivers/net/wireless/libertas/join.c | |
parent | a9f38d023b65c9fe2602303c1101c868be4fcbcc (diff) |
[PATCH] libertas: make the hex dumper nicer
Currently, when you define LBS_DEB_HEX, you get every hex dump in the
whole driver, e.g. for LBS_DEB_CMD, LBS_DEB_RX, LBS_DEB_TX etc. This
patch makes sure that you only get the hexdump that you're interested in.
Renamed lbs_dbg_hex() into lbs_deb_hex(), like the other lbs_deb_XXX()
macros.
Made lbs_deb_hex() issue a line feed (and a new prompt) after 16 bytes.
As lbs_deb_hex() now prints the ":" after the prompt by itself, removed
the misc colons in the various *.c files.
lbs_deb_XXX() now print the debug category as well.
As lbs_deb_XXX() --- and especially lbs_deb_11d() --- now print the
category, I removed various "11D:" prefixes in 11d.c as well.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/join.c')
-rw-r--r-- | drivers/net/wireless/libertas/join.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c index da47c225e101..2b538ab51d40 100644 --- a/drivers/net/wireless/libertas/join.c +++ b/drivers/net/wireless/libertas/join.c | |||
@@ -51,9 +51,9 @@ static int get_common_rates(wlan_adapter * adapter, u8 * rates, u16 *rates_size) | |||
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | lbs_dbg_hex("rate1 (AP) rates:", rates, *rates_size); | 54 | lbs_deb_hex(LBS_DEB_JOIN, "AP rates ", rates, *rates_size); |
55 | lbs_dbg_hex("rate2 (Card) rates:", card_rates, num_card_rates); | 55 | lbs_deb_hex(LBS_DEB_JOIN, "card rates ", card_rates, num_card_rates); |
56 | lbs_dbg_hex("Common rates:", tmp, tmp_size); | 56 | lbs_deb_hex(LBS_DEB_JOIN, "common rates", tmp, tmp_size); |
57 | lbs_deb_join("Tx datarate is currently 0x%X\n", adapter->cur_rate); | 57 | lbs_deb_join("Tx datarate is currently 0x%X\n", adapter->cur_rate); |
58 | 58 | ||
59 | if (!adapter->auto_rate) { | 59 | if (!adapter->auto_rate) { |
@@ -426,7 +426,7 @@ int libertas_cmd_80211_associate(wlan_private * priv, | |||
426 | tmplen = (u16) assoc_req->wpa_ie[1]; | 426 | tmplen = (u16) assoc_req->wpa_ie[1]; |
427 | rsn->header.len = cpu_to_le16(tmplen); | 427 | rsn->header.len = cpu_to_le16(tmplen); |
428 | memcpy(rsn->rsnie, &assoc_req->wpa_ie[2], tmplen); | 428 | memcpy(rsn->rsnie, &assoc_req->wpa_ie[2], tmplen); |
429 | lbs_dbg_hex("ASSOC_CMD: RSN IE", (u8 *) rsn, | 429 | lbs_deb_hex(LBS_DEB_JOIN, "ASSOC_CMD: RSN IE", (u8 *) rsn, |
430 | sizeof(rsn->header) + tmplen); | 430 | sizeof(rsn->header) + tmplen); |
431 | pos += sizeof(rsn->header) + tmplen; | 431 | pos += sizeof(rsn->header) + tmplen; |
432 | } | 432 | } |
@@ -711,7 +711,7 @@ int libertas_ret_80211_associate(wlan_private * priv, | |||
711 | goto done; | 711 | goto done; |
712 | } | 712 | } |
713 | 713 | ||
714 | lbs_dbg_hex("ASSOC_RESP:", (void *)&resp->params, | 714 | lbs_deb_hex(LBS_DEB_JOIN, "ASSOC_RESP", (void *)&resp->params, |
715 | le16_to_cpu(resp->size) - S_DS_GEN); | 715 | le16_to_cpu(resp->size) - S_DS_GEN); |
716 | 716 | ||
717 | /* Send a Media Connected event, according to the Spec */ | 717 | /* Send a Media Connected event, according to the Spec */ |