diff options
author | Ursula Braun <ursula.braun@de.ibm.com> | 2012-03-07 03:06:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-08 07:52:25 +0100 |
commit | ce1f893837afeee8aea0c5f6a32ebba16816beec (patch) | |
tree | 029a8490f64053a4817407dd1e2c100ecaa96804 /drivers/s390/net/ctcm_main.c | |
parent | qeth: synchronize discipline module loading (diff) | |
download | linux-ce1f893837afeee8aea0c5f6a32ebba16816beec.tar.xz linux-ce1f893837afeee8aea0c5f6a32ebba16816beec.zip |
ctcm: make ctcmpc debugging compilable
ctcmpc debugging can be activated defining constant DEBUGCCW.
The debugging part contains wrong checks for 64 bit addresses.
Thus the debugging version does not compile.
This patch corrects the 64-bit address checks to make it
compilable.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reviewed-by: Belinda Thompson <belindat@us.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/ctcm_main.c')
-rw-r--r-- | drivers/s390/net/ctcm_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index 5cb93a8e3403..11f3b071f305 100644 --- a/drivers/s390/net/ctcm_main.c +++ b/drivers/s390/net/ctcm_main.c @@ -562,6 +562,9 @@ static int ctcm_transmit_skb(struct channel *ch, struct sk_buff *skb) skb_queue_tail(&ch->io_queue, skb); ccw_idx = 3; } + if (do_debug_ccw) + ctcmpc_dumpit((char *)&ch->ccw[ccw_idx], + sizeof(struct ccw1) * 3); ch->retry = 0; fsm_newstate(ch->fsm, CTC_STATE_TX); fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch); |