diff options
author | Melissa Howland <melissah@us.ibm.com> | 2008-12-25 13:39:44 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 13:39:23 +0100 |
commit | 1519c0c6ebd2bfd29bae762a1741963a1d06bca2 (patch) | |
tree | 40db212206b60ab83923fb20ab4370e84341a051 /drivers/s390 | |
parent | c5612c1956597687e4bdf59f2649d20d60f5a2b6 (diff) | |
download | op-kernel-dev-1519c0c6ebd2bfd29bae762a1741963a1d06bca2.zip op-kernel-dev-1519c0c6ebd2bfd29bae762a1741963a1d06bca2.tar.gz |
[S390] convert monwriter printks to pr_xxx macros.
Signed-off-by: Melissa Howland <melissah@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/monwriter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/char/monwriter.c b/drivers/s390/char/monwriter.c index 4d71aa8..c7d7483 100644 --- a/drivers/s390/char/monwriter.c +++ b/drivers/s390/char/monwriter.c @@ -8,6 +8,9 @@ * Author(s): Melissa Howland <Melissa.Howland@us.ibm.com> */ +#define KMSG_COMPONENT "monwriter" +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt + #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/init.h> @@ -64,9 +67,9 @@ static int monwrite_diag(struct monwrite_hdr *myhdr, char *buffer, int fcn) rc = appldata_asm(&id, fcn, (void *) buffer, myhdr->datalen); if (rc <= 0) return rc; + pr_err("Writing monitor data failed with rc=%i\n", rc); if (rc == 5) return -EPERM; - printk("DIAG X'DC' error with return code: %i\n", rc); return -EINVAL; } |