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/main.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/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 717b33616ea..2713f57e9bc 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -556,9 +556,9 @@ static int libertas_set_mac_address(struct net_device *dev, void *addr) | |||
556 | memset(adapter->current_addr, 0, ETH_ALEN); | 556 | memset(adapter->current_addr, 0, ETH_ALEN); |
557 | 557 | ||
558 | /* dev->dev_addr is 8 bytes */ | 558 | /* dev->dev_addr is 8 bytes */ |
559 | lbs_dbg_hex("dev->dev_addr:", dev->dev_addr, ETH_ALEN); | 559 | lbs_deb_hex(LBS_DEB_NET, "dev->dev_addr", dev->dev_addr, ETH_ALEN); |
560 | 560 | ||
561 | lbs_dbg_hex("addr:", phwaddr->sa_data, ETH_ALEN); | 561 | lbs_deb_hex(LBS_DEB_NET, "addr", phwaddr->sa_data, ETH_ALEN); |
562 | memcpy(adapter->current_addr, phwaddr->sa_data, ETH_ALEN); | 562 | memcpy(adapter->current_addr, phwaddr->sa_data, ETH_ALEN); |
563 | 563 | ||
564 | ret = libertas_prepare_and_send_command(priv, CMD_802_11_MAC_ADDRESS, | 564 | ret = libertas_prepare_and_send_command(priv, CMD_802_11_MAC_ADDRESS, |
@@ -571,7 +571,7 @@ static int libertas_set_mac_address(struct net_device *dev, void *addr) | |||
571 | goto done; | 571 | goto done; |
572 | } | 572 | } |
573 | 573 | ||
574 | lbs_dbg_hex("adapter->macaddr:", adapter->current_addr, ETH_ALEN); | 574 | lbs_deb_hex(LBS_DEB_NET, "adapter->macaddr", adapter->current_addr, ETH_ALEN); |
575 | memcpy(dev->dev_addr, adapter->current_addr, ETH_ALEN); | 575 | memcpy(dev->dev_addr, adapter->current_addr, ETH_ALEN); |
576 | if (priv->mesh_dev) | 576 | if (priv->mesh_dev) |
577 | memcpy(priv->mesh_dev->dev_addr, adapter->current_addr, ETH_ALEN); | 577 | memcpy(priv->mesh_dev->dev_addr, adapter->current_addr, ETH_ALEN); |