diff options
| -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 4d71aa8c1a79..c7d7483bab9a 100644 --- a/drivers/s390/char/monwriter.c +++ b/drivers/s390/char/monwriter.c | |||
| @@ -8,6 +8,9 @@ | |||
| 8 | * Author(s): Melissa Howland <Melissa.Howland@us.ibm.com> | 8 | * Author(s): Melissa Howland <Melissa.Howland@us.ibm.com> |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #define KMSG_COMPONENT "monwriter" | ||
| 12 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | ||
| 13 | |||
| 11 | #include <linux/module.h> | 14 | #include <linux/module.h> |
| 12 | #include <linux/moduleparam.h> | 15 | #include <linux/moduleparam.h> |
| 13 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| @@ -64,9 +67,9 @@ static int monwrite_diag(struct monwrite_hdr *myhdr, char *buffer, int fcn) | |||
| 64 | rc = appldata_asm(&id, fcn, (void *) buffer, myhdr->datalen); | 67 | rc = appldata_asm(&id, fcn, (void *) buffer, myhdr->datalen); |
| 65 | if (rc <= 0) | 68 | if (rc <= 0) |
| 66 | return rc; | 69 | return rc; |
| 70 | pr_err("Writing monitor data failed with rc=%i\n", rc); | ||
| 67 | if (rc == 5) | 71 | if (rc == 5) |
| 68 | return -EPERM; | 72 | return -EPERM; |
| 69 | printk("DIAG X'DC' error with return code: %i\n", rc); | ||
| 70 | return -EINVAL; | 73 | return -EINVAL; |
| 71 | } | 74 | } |
| 72 | 75 | ||
