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/cmd.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/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 85b573770704..8d2f9bad8680 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -773,7 +773,7 @@ static int wlan_cmd_802_11_mac_address(wlan_private * priv, | |||
773 | if (cmd_action == CMD_ACT_SET) { | 773 | if (cmd_action == CMD_ACT_SET) { |
774 | memcpy(cmd->params.macadd.macadd, | 774 | memcpy(cmd->params.macadd.macadd, |
775 | adapter->current_addr, ETH_ALEN); | 775 | adapter->current_addr, ETH_ALEN); |
776 | lbs_dbg_hex("SET_CMD: MAC ADDRESS-", adapter->current_addr, 6); | 776 | lbs_deb_hex(LBS_DEB_CMD, "SET_CMD: MAC addr", adapter->current_addr, 6); |
777 | } | 777 | } |
778 | 778 | ||
779 | return 0; | 779 | return 0; |
@@ -815,11 +815,11 @@ static int wlan_cmd_bt_access(wlan_private * priv, | |||
815 | switch (cmd_action) { | 815 | switch (cmd_action) { |
816 | case CMD_ACT_BT_ACCESS_ADD: | 816 | case CMD_ACT_BT_ACCESS_ADD: |
817 | memcpy(bt_access->addr1, pdata_buf, 2 * ETH_ALEN); | 817 | memcpy(bt_access->addr1, pdata_buf, 2 * ETH_ALEN); |
818 | lbs_dbg_hex("BT_ADD: blinded mac address-", bt_access->addr1, 6); | 818 | lbs_deb_hex(LBS_DEB_MESH, "BT_ADD: blinded MAC addr", bt_access->addr1, 6); |
819 | break; | 819 | break; |
820 | case CMD_ACT_BT_ACCESS_DEL: | 820 | case CMD_ACT_BT_ACCESS_DEL: |
821 | memcpy(bt_access->addr1, pdata_buf, 1 * ETH_ALEN); | 821 | memcpy(bt_access->addr1, pdata_buf, 1 * ETH_ALEN); |
822 | lbs_dbg_hex("BT_DEL: blinded mac address-", bt_access->addr1, 6); | 822 | lbs_deb_hex(LBS_DEB_MESH, "BT_DEL: blinded MAC addr", bt_access->addr1, 6); |
823 | break; | 823 | break; |
824 | case CMD_ACT_BT_ACCESS_LIST: | 824 | case CMD_ACT_BT_ACCESS_LIST: |
825 | bt_access->id = cpu_to_le32(*(u32 *) pdata_buf); | 825 | bt_access->id = cpu_to_le32(*(u32 *) pdata_buf); |
@@ -993,8 +993,8 @@ static int DownloadcommandToStation(wlan_private * priv, | |||
993 | goto done; | 993 | goto done; |
994 | } | 994 | } |
995 | 995 | ||
996 | lbs_deb_cmd("DNLD_CMD: Sent command 0x%x @ %lu\n", command, jiffies); | 996 | lbs_deb_cmd("DNLD_CMD: sent command 0x%x, jiffies %lu\n", command, jiffies); |
997 | lbs_dbg_hex("DNLD_CMD: command", cmdnode->bufvirtualaddr, cmdsize); | 997 | lbs_deb_hex(LBS_DEB_CMD, "command", cmdnode->bufvirtualaddr, cmdsize); |
998 | 998 | ||
999 | /* Setup the timer after transmit command */ | 999 | /* Setup the timer after transmit command */ |
1000 | if (command == CMD_802_11_SCAN || command == CMD_802_11_AUTHENTICATE | 1000 | if (command == CMD_802_11_SCAN || command == CMD_802_11_AUTHENTICATE |
@@ -1801,7 +1801,7 @@ static int sendconfirmsleep(wlan_private * priv, u8 * cmdptr, u16 size) | |||
1801 | lbs_deb_cmd("SEND_SLEEPC_CMD: Before download, size of cmd = %d\n", | 1801 | lbs_deb_cmd("SEND_SLEEPC_CMD: Before download, size of cmd = %d\n", |
1802 | size); | 1802 | size); |
1803 | 1803 | ||
1804 | lbs_dbg_hex("SEND_SLEEPC_CMD: Sleep confirm command", cmdptr, size); | 1804 | lbs_deb_hex(LBS_DEB_CMD, "sleep confirm command", cmdptr, size); |
1805 | 1805 | ||
1806 | ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size); | 1806 | ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size); |
1807 | priv->dnld_sent = DNLD_RES_RECEIVED; | 1807 | priv->dnld_sent = DNLD_RES_RECEIVED; |