projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5612c1
)
[S390] convert monwriter printks to pr_xxx macros.
author
Melissa Howland
<
[email protected]
>
Thu, 25 Dec 2008 12:39:44 +0000
(13:39 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Thu, 25 Dec 2008 12:39:23 +0000
(13:39 +0100)
Signed-off-by: Melissa Howland <
[email protected]
>
Signed-off-by: Martin Schwidefsky <
[email protected]
>
drivers/s390/char/monwriter.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/monwriter.c
b/drivers/s390/char/monwriter.c
index 4d71aa8c1a7956928e1354cd82f56a70d145c1e2..c7d7483bab9ae010fef8e225d3138242aa9a00c7 100644
(file)
--- a/
drivers/s390/char/monwriter.c
+++ b/
drivers/s390/char/monwriter.c
@@
-8,6
+8,9
@@
* Author(s): Melissa Howland <
[email protected]
>
*/
+#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;
}