Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290826
b: refs/heads/master
c: ce1f893
h: refs/heads/master
v: v3
  • Loading branch information
Ursula Braun authored and David S. Miller committed Mar 8, 2012
1 parent d0efde0 commit 1d99e04
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2022e00cd5c0a9b43163834a51af664de16cfc3c
refs/heads/master: ce1f893837afeee8aea0c5f6a32ebba16816beec
3 changes: 3 additions & 0 deletions trunk/drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/s390/net/ctcm_mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
#include <linux/moduleparam.h>
#include <asm/idals.h>

#include "ctcm_mpc.h"
#include "ctcm_main.h"
#include "ctcm_mpc.h"
#include "ctcm_fsms.h"

static const struct xid2 init_xid = {
Expand Down Expand Up @@ -132,7 +132,7 @@ void ctcmpc_dumpit(char *buf, int len)
__u32 ct, sw, rm, dup;
char *ptr, *rptr;
char tbuf[82], tdup[82];
#if (UTS_MACHINE == s390x)
#ifdef CONFIG_64BIT
char addr[22];
#else
char addr[12];
Expand All @@ -149,8 +149,8 @@ void ctcmpc_dumpit(char *buf, int len)

for (ct = 0; ct < len; ct++, ptr++, rptr++) {
if (sw == 0) {
#if (UTS_MACHINE == s390x)
sprintf(addr, "%16.16lx", (__u64)rptr);
#ifdef CONFIG_64BIT
sprintf(addr, "%16.16llx", (__u64)rptr);
#else
sprintf(addr, "%8.8X", (__u32)rptr);
#endif
Expand All @@ -164,8 +164,8 @@ void ctcmpc_dumpit(char *buf, int len)
if (sw == 8)
strcat(bhex, " ");

#if (UTS_MACHINE == s390x)
sprintf(tbuf, "%2.2lX", (__u64)*ptr);
#if CONFIG_64BIT
sprintf(tbuf, "%2.2llX", (__u64)*ptr);
#else
sprintf(tbuf, "%2.2X", (__u32)*ptr);
#endif
Expand Down

0 comments on commit 1d99e04

Please sign in to comment.