Skip to content

Commit

Permalink
[S390] convert zfcp printks to pr_xxx macros.
Browse files Browse the repository at this point in the history
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Christof Schmitt authored and Martin Schwidefsky committed Dec 25, 2008
1 parent 5466c2e commit ecf39d4
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/s390/scsi/zfcp_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
* Sven Schuetz
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/miscdevice.h>
#include <linux/seq_file.h>
#include "zfcp_ext.h"
Expand Down Expand Up @@ -105,7 +108,7 @@ static int __init zfcp_device_setup(char *devstr)

err_out:
kfree(str);
pr_err("zfcp: %s is not a valid SCSI device\n", devstr);
pr_err("%s is not a valid SCSI device\n", devstr);
return 0;
}

Expand Down Expand Up @@ -189,13 +192,13 @@ static int __init zfcp_module_init(void)

retval = misc_register(&zfcp_cfdc_misc);
if (retval) {
pr_err("zfcp: Registering the misc device zfcp_cfdc failed\n");
pr_err("Registering the misc device zfcp_cfdc failed\n");
goto out_misc;
}

retval = zfcp_ccw_register();
if (retval) {
pr_err("zfcp: The zfcp device driver could not register with "
pr_err("The zfcp device driver could not register with "
"the common I/O layer\n");
goto out_ccw_register;
}
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_ccw.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"

/**
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_cfdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* Copyright IBM Corporation 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/types.h>
#include <linux/miscdevice.h>
#include <asm/ccwdev.h>
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_dbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/ctype.h>
#include <asm/debug.h>
#include "zfcp_ext.h"
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_erp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"

#define ZFCP_MAX_ERPS 3
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"

struct ct_iu_gpn_ft_req {
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/blktrace_api.h>
#include "zfcp_ext.h"

Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_qdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"

/* FIXME(tune): free space should be one max. SBAL chain plus what? */
Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2002, 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"
#include <asm/atomic.h>

Expand Down
3 changes: 3 additions & 0 deletions drivers/s390/scsi/zfcp_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright IBM Corporation 2008
*/

#define KMSG_COMPONENT "zfcp"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include "zfcp_ext.h"

#define ZFCP_DEV_ATTR(_feat, _name, _mode, _show, _store) \
Expand Down

0 comments on commit ecf39d4

Please sign in to comment.