Skip to content

Commit

Permalink
cw1200: When debug is enabled, display all wakeup conditions for the …
Browse files Browse the repository at this point in the history
…wait_event_interruptible_timeout() call.

When trying to debug an interrupt delivery problem I noticed that not
all of the wakeup conditions on the worker thread were included in the
debug message.  This patch rectifies that.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Solomon Peachy authored and John W. Linville committed Aug 28, 2013
1 parent 7f19023 commit 076f0d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/cw1200/bh.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ static int cw1200_bh(void *arg)
(rx || tx || term || suspend || priv->bh_error);
}), status);

pr_debug("[BH] - rx: %d, tx: %d, term: %d, suspend: %d, status: %ld\n",
rx, tx, term, suspend, status);
pr_debug("[BH] - rx: %d, tx: %d, term: %d, bh_err: %d, suspend: %d, status: %ld\n",
rx, tx, term, suspend, priv->bh_error, status);

/* Did an error occur? */
if ((status < 0 && status != -ERESTARTSYS) ||
Expand Down

0 comments on commit 076f0d2

Please sign in to comment.