aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-08-02 11:53:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:53 -0400
commitece561919326236c7fb791a5e883f0eb76af029e (patch)
tree69d81daf8f8de4182ca89ab3b722defc585ffa80 /drivers/net/wireless/libertas/cmdresp.c
parenta9f38d023b65c9fe2602303c1101c868be4fcbcc (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/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index bb1d72b2b524..6166bbc0528e 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -431,7 +431,7 @@ static int wlan_ret_802_11_data_rate(wlan_private * priv,
431 431
432 lbs_deb_enter(LBS_DEB_CMD); 432 lbs_deb_enter(LBS_DEB_CMD);
433 433
434 lbs_dbg_hex("DATA_RATE_RESP: data_rate- ", (u8 *) pdatarate, 434 lbs_deb_hex(LBS_DEB_CMD, "DATA_RATE_RESP: data_rate- ", (u8 *) pdatarate,
435 sizeof(struct cmd_ds_802_11_data_rate)); 435 sizeof(struct cmd_ds_802_11_data_rate));
436 436
437 /* FIXME: get actual rates FW can do if this command actually returns 437 /* FIXME: get actual rates FW can do if this command actually returns
@@ -512,7 +512,7 @@ static int wlan_ret_802_11_eeprom_access(wlan_private * priv,
512 512
513 memcpy(&pbuf->value, (u8 *) & resp->params.rdeeprom.value, 513 memcpy(&pbuf->value, (u8 *) & resp->params.rdeeprom.value,
514 le16_to_cpu(resp->params.rdeeprom.bytecount)); 514 le16_to_cpu(resp->params.rdeeprom.bytecount));
515 lbs_dbg_hex("adapter", (char *)&pbuf->value, 515 lbs_deb_hex(LBS_DEB_CMD, "adapter", (char *)&pbuf->value,
516 le16_to_cpu(resp->params.rdeeprom.bytecount)); 516 le16_to_cpu(resp->params.rdeeprom.bytecount));
517 } 517 }
518 return 0; 518 return 0;
@@ -758,7 +758,7 @@ int libertas_process_rx_command(wlan_private * priv)
758 } 758 }
759 resp = (struct cmd_ds_command *)(adapter->cur_cmd->bufvirtualaddr); 759 resp = (struct cmd_ds_command *)(adapter->cur_cmd->bufvirtualaddr);
760 760
761 lbs_dbg_hex("CMD_RESP:", adapter->cur_cmd->bufvirtualaddr, 761 lbs_deb_hex(LBS_DEB_CMD, "CMD_RESP", adapter->cur_cmd->bufvirtualaddr,
762 priv->upld_len); 762 priv->upld_len);
763 763
764 respcmd = le16_to_cpu(resp->command); 764 respcmd = le16_to_cpu(resp->command);