diff options
Diffstat (limited to 'drivers/isdn/sc/packet.c')
-rw-r--r-- | drivers/isdn/sc/packet.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/isdn/sc/packet.c b/drivers/isdn/sc/packet.c index f50defc38ae5..1e04676b016b 100644 --- a/drivers/isdn/sc/packet.c +++ b/drivers/isdn/sc/packet.c | |||
@@ -44,7 +44,7 @@ int sndpkt(int devId, int channel, struct sk_buff *data) | |||
44 | return -ENODEV; | 44 | return -ENODEV; |
45 | } | 45 | } |
46 | 46 | ||
47 | pr_debug("%s: sndpkt: frst = 0x%x nxt = %d f = %d n = %d\n", | 47 | pr_debug("%s: sndpkt: frst = 0x%lx nxt = %d f = %d n = %d\n", |
48 | sc_adapter[card]->devicename, | 48 | sc_adapter[card]->devicename, |
49 | sc_adapter[card]->channel[channel].first_sendbuf, | 49 | sc_adapter[card]->channel[channel].first_sendbuf, |
50 | sc_adapter[card]->channel[channel].next_sendbuf, | 50 | sc_adapter[card]->channel[channel].next_sendbuf, |
@@ -66,7 +66,7 @@ int sndpkt(int devId, int channel, struct sk_buff *data) | |||
66 | ReqLnkWrite.buff_offset = sc_adapter[card]->channel[channel].next_sendbuf * | 66 | ReqLnkWrite.buff_offset = sc_adapter[card]->channel[channel].next_sendbuf * |
67 | BUFFER_SIZE + sc_adapter[card]->channel[channel].first_sendbuf; | 67 | BUFFER_SIZE + sc_adapter[card]->channel[channel].first_sendbuf; |
68 | ReqLnkWrite.msg_len = data->len; /* sk_buff size */ | 68 | ReqLnkWrite.msg_len = data->len; /* sk_buff size */ |
69 | pr_debug("%s: writing %d bytes to buffer offset 0x%x\n", | 69 | pr_debug("%s: writing %d bytes to buffer offset 0x%lx\n", |
70 | sc_adapter[card]->devicename, | 70 | sc_adapter[card]->devicename, |
71 | ReqLnkWrite.msg_len, ReqLnkWrite.buff_offset); | 71 | ReqLnkWrite.msg_len, ReqLnkWrite.buff_offset); |
72 | memcpy_toshmem(card, (char *)ReqLnkWrite.buff_offset, data->data, ReqLnkWrite.msg_len); | 72 | memcpy_toshmem(card, (char *)ReqLnkWrite.buff_offset, data->data, ReqLnkWrite.msg_len); |
@@ -74,7 +74,7 @@ int sndpkt(int devId, int channel, struct sk_buff *data) | |||
74 | /* | 74 | /* |
75 | * sendmessage | 75 | * sendmessage |
76 | */ | 76 | */ |
77 | pr_debug("%s: sndpkt size=%d, buf_offset=0x%x buf_indx=%d\n", | 77 | pr_debug("%s: sndpkt size=%d, buf_offset=0x%lx buf_indx=%d\n", |
78 | sc_adapter[card]->devicename, | 78 | sc_adapter[card]->devicename, |
79 | ReqLnkWrite.msg_len, ReqLnkWrite.buff_offset, | 79 | ReqLnkWrite.msg_len, ReqLnkWrite.buff_offset, |
80 | sc_adapter[card]->channel[channel].next_sendbuf); | 80 | sc_adapter[card]->channel[channel].next_sendbuf); |
@@ -124,7 +124,7 @@ void rcvpkt(int card, RspMessage *rcvmsg) | |||
124 | return; | 124 | return; |
125 | } | 125 | } |
126 | skb_put(skb, rcvmsg->msg_data.response.msg_len); | 126 | skb_put(skb, rcvmsg->msg_data.response.msg_len); |
127 | pr_debug("%s: getting data from offset: 0x%x\n", | 127 | pr_debug("%s: getting data from offset: 0x%lx\n", |
128 | sc_adapter[card]->devicename, | 128 | sc_adapter[card]->devicename, |
129 | rcvmsg->msg_data.response.buff_offset); | 129 | rcvmsg->msg_data.response.buff_offset); |
130 | memcpy_fromshmem(card, | 130 | memcpy_fromshmem(card, |
@@ -143,7 +143,7 @@ void rcvpkt(int card, RspMessage *rcvmsg) | |||
143 | /* memset_shmem(card, rcvmsg->msg_data.response.buff_offset, 0, BUFFER_SIZE); */ | 143 | /* memset_shmem(card, rcvmsg->msg_data.response.buff_offset, 0, BUFFER_SIZE); */ |
144 | newll.buff_offset = rcvmsg->msg_data.response.buff_offset; | 144 | newll.buff_offset = rcvmsg->msg_data.response.buff_offset; |
145 | newll.msg_len = BUFFER_SIZE; | 145 | newll.msg_len = BUFFER_SIZE; |
146 | pr_debug("%s: recycled buffer at offset 0x%x size %d\n", | 146 | pr_debug("%s: recycled buffer at offset 0x%lx size %d\n", |
147 | sc_adapter[card]->devicename, | 147 | sc_adapter[card]->devicename, |
148 | newll.buff_offset, newll.msg_len); | 148 | newll.buff_offset, newll.msg_len); |
149 | sendmessage(card, CEPID, ceReqTypeLnk, ceReqClass1, ceReqLnkRead, | 149 | sendmessage(card, CEPID, ceReqTypeLnk, ceReqClass1, ceReqLnkRead, |
@@ -186,7 +186,7 @@ int setup_buffers(int card, int c) | |||
186 | sc_adapter[card]->channel[c-1].num_sendbufs = nBuffers / 2; | 186 | sc_adapter[card]->channel[c-1].num_sendbufs = nBuffers / 2; |
187 | sc_adapter[card]->channel[c-1].free_sendbufs = nBuffers / 2; | 187 | sc_adapter[card]->channel[c-1].free_sendbufs = nBuffers / 2; |
188 | sc_adapter[card]->channel[c-1].next_sendbuf = 0; | 188 | sc_adapter[card]->channel[c-1].next_sendbuf = 0; |
189 | pr_debug("%s: send buffer setup complete: first=0x%x n=%d f=%d, nxt=%d\n", | 189 | pr_debug("%s: send buffer setup complete: first=0x%lx n=%d f=%d, nxt=%d\n", |
190 | sc_adapter[card]->devicename, | 190 | sc_adapter[card]->devicename, |
191 | sc_adapter[card]->channel[c-1].first_sendbuf, | 191 | sc_adapter[card]->channel[c-1].first_sendbuf, |
192 | sc_adapter[card]->channel[c-1].num_sendbufs, | 192 | sc_adapter[card]->channel[c-1].num_sendbufs, |
@@ -203,7 +203,7 @@ int setup_buffers(int card, int c) | |||
203 | ((sc_adapter[card]->channel[c-1].first_sendbuf + | 203 | ((sc_adapter[card]->channel[c-1].first_sendbuf + |
204 | (nBuffers / 2) * buffer_size) + (buffer_size * i)); | 204 | (nBuffers / 2) * buffer_size) + (buffer_size * i)); |
205 | RcvBuffOffset.msg_len = buffer_size; | 205 | RcvBuffOffset.msg_len = buffer_size; |
206 | pr_debug("%s: adding RcvBuffer #%d offset=0x%x sz=%d bufsz:%d\n", | 206 | pr_debug("%s: adding RcvBuffer #%d offset=0x%lx sz=%d bufsz:%d\n", |
207 | sc_adapter[card]->devicename, | 207 | sc_adapter[card]->devicename, |
208 | i + 1, RcvBuffOffset.buff_offset, | 208 | i + 1, RcvBuffOffset.buff_offset, |
209 | RcvBuffOffset.msg_len,buffer_size); | 209 | RcvBuffOffset.msg_len,buffer_size); |