diff options
author | Peter Tiedemann <ptiedem@de.ibm.com> | 2008-12-25 07:39:54 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 07:39:27 -0500 |
commit | 2a7c6f2c39d1291e55403676b25fcfbff78fc5fb (patch) | |
tree | b37f40a4f4b582e9e3eafa8da923a098c62a7c09 /drivers/s390/net/ctcm_mpc.c | |
parent | ecf39d42129767c0b4b4a6cf4997c1219c860934 (diff) |
[S390] convert ctcm printks to dev_xxx and pr_xxx macros.
Signed-off-by: Peter Tiedemann <ptiedem@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/net/ctcm_mpc.c')
-rw-r--r-- | drivers/s390/net/ctcm_mpc.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/s390/net/ctcm_mpc.c b/drivers/s390/net/ctcm_mpc.c index 19f5d5ed85e0..3db5f846bbf6 100644 --- a/drivers/s390/net/ctcm_mpc.c +++ b/drivers/s390/net/ctcm_mpc.c | |||
@@ -19,6 +19,9 @@ | |||
19 | #undef DEBUGDATA | 19 | #undef DEBUGDATA |
20 | #undef DEBUGCCW | 20 | #undef DEBUGCCW |
21 | 21 | ||
22 | #define KMSG_COMPONENT "ctcm" | ||
23 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | ||
24 | |||
22 | #include <linux/module.h> | 25 | #include <linux/module.h> |
23 | #include <linux/init.h> | 26 | #include <linux/init.h> |
24 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
@@ -386,7 +389,7 @@ int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int)) | |||
386 | if (grp->allocchan_callback_retries < 4) { | 389 | if (grp->allocchan_callback_retries < 4) { |
387 | if (grp->allochanfunc) | 390 | if (grp->allochanfunc) |
388 | grp->allochanfunc(grp->port_num, | 391 | grp->allochanfunc(grp->port_num, |
389 | grp->group_max_buflen); | 392 | grp->group_max_buflen); |
390 | } else { | 393 | } else { |
391 | /* there are problems...bail out */ | 394 | /* there are problems...bail out */ |
392 | /* there may be a state mismatch so restart */ | 395 | /* there may be a state mismatch so restart */ |
@@ -1232,8 +1235,9 @@ done: | |||
1232 | 1235 | ||
1233 | dev_kfree_skb_any(pskb); | 1236 | dev_kfree_skb_any(pskb); |
1234 | if (sendrc == NET_RX_DROP) { | 1237 | if (sendrc == NET_RX_DROP) { |
1235 | printk(KERN_WARNING "%s %s() NETWORK BACKLOG EXCEEDED" | 1238 | dev_warn(&dev->dev, |
1236 | " - PACKET DROPPED\n", dev->name, __func__); | 1239 | "The network backlog for %s is exceeded, " |
1240 | "package dropped\n", __func__); | ||
1237 | fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); | 1241 | fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); |
1238 | } | 1242 | } |
1239 | 1243 | ||
@@ -1670,10 +1674,11 @@ static int mpc_validate_xid(struct mpcg_info *mpcginfo) | |||
1670 | CTCM_FUNTAIL, ch->id); | 1674 | CTCM_FUNTAIL, ch->id); |
1671 | } | 1675 | } |
1672 | } | 1676 | } |
1673 | |||
1674 | done: | 1677 | done: |
1675 | if (rc) { | 1678 | if (rc) { |
1676 | ctcm_pr_info("ctcmpc : %s() failed\n", __func__); | 1679 | dev_warn(&dev->dev, |
1680 | "The XID used in the MPC protocol is not valid, " | ||
1681 | "rc = %d\n", rc); | ||
1677 | priv->xid->xid2_flag2 = 0x40; | 1682 | priv->xid->xid2_flag2 = 0x40; |
1678 | grp->saved_xid2->xid2_flag2 = 0x40; | 1683 | grp->saved_xid2->xid2_flag2 = 0x40; |
1679 | } | 1684 | } |