Skip to content

Commit

Permalink
libertas: debug output tweaks for lbs_thread
Browse files Browse the repository at this point in the history
* make debug output match the variable name
* always report that lbs_remove_rtap() has has been exited

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and John W. Linville committed May 7, 2008
1 parent e100bb6 commit 5f505d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ static int lbs_thread(void *data)

if (shouldsleep) {
lbs_deb_thread("sleeping, connect_status %d, "
"ps_mode %d, ps_state %d\n",
"psmode %d, psstate %d\n",
priv->connect_status,
priv->psmode, priv->psstate);
spin_unlock_irq(&priv->driver_lock);
Expand Down Expand Up @@ -1532,10 +1532,11 @@ static void lbs_remove_rtap(struct lbs_private *priv)
{
lbs_deb_enter(LBS_DEB_MAIN);
if (priv->rtap_net_dev == NULL)
return;
goto out;
unregister_netdev(priv->rtap_net_dev);
free_netdev(priv->rtap_net_dev);
priv->rtap_net_dev = NULL;
out:
lbs_deb_leave(LBS_DEB_MAIN);
}

Expand Down

0 comments on commit 5f505d9

Please sign in to comment.