[S390] convert cio printks to pr_xxx macros.
Signed-off-by: Michael Ernst <mernst@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
80a5c36d1d
commit
e6d5a428e0
@@ -9,6 +9,9 @@
|
|||||||
* Arnd Bergmann (arndb@de.ibm.com)
|
* Arnd Bergmann (arndb@de.ibm.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define KMSG_COMPONENT "cio"
|
||||||
|
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||||
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
@@ -50,9 +53,10 @@ static int blacklist_range(range_action action, unsigned int from_ssid,
|
|||||||
{
|
{
|
||||||
if ((from_ssid > to_ssid) || ((from_ssid == to_ssid) && (from > to))) {
|
if ((from_ssid > to_ssid) || ((from_ssid == to_ssid) && (from > to))) {
|
||||||
if (msgtrigger)
|
if (msgtrigger)
|
||||||
printk(KERN_WARNING "cio: Invalid cio_ignore range "
|
pr_warning("0.%x.%04x to 0.%x.%04x is not a valid "
|
||||||
"0.%x.%04x-0.%x.%04x\n", from_ssid, from,
|
"range for cio_ignore\n", from_ssid, from,
|
||||||
to_ssid, to);
|
to_ssid, to);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,8 +144,8 @@ static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid,
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
out:
|
out:
|
||||||
if (rc && msgtrigger)
|
if (rc && msgtrigger)
|
||||||
printk(KERN_WARNING "cio: Invalid cio_ignore device '%s'\n",
|
pr_warning("%s is not a valid device for the cio_ignore "
|
||||||
str);
|
"kernel parameter\n", str);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@@ -8,6 +8,9 @@
|
|||||||
* Arnd Bergmann (arndb@de.ibm.com)
|
* Arnd Bergmann (arndb@de.ibm.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define KMSG_COMPONENT "cio"
|
||||||
|
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
@@ -333,6 +336,7 @@ static void chsc_process_sei_chp_config(struct chsc_sei_area *sei_area)
|
|||||||
struct chp_config_data *data;
|
struct chp_config_data *data;
|
||||||
struct chp_id chpid;
|
struct chp_id chpid;
|
||||||
int num;
|
int num;
|
||||||
|
char *events[3] = {"configure", "deconfigure", "cancel deconfigure"};
|
||||||
|
|
||||||
CIO_CRW_EVENT(4, "chsc: channel-path-configuration notification\n");
|
CIO_CRW_EVENT(4, "chsc: channel-path-configuration notification\n");
|
||||||
if (sei_area->rs != 0)
|
if (sei_area->rs != 0)
|
||||||
@@ -343,8 +347,8 @@ static void chsc_process_sei_chp_config(struct chsc_sei_area *sei_area)
|
|||||||
if (!chp_test_bit(data->map, num))
|
if (!chp_test_bit(data->map, num))
|
||||||
continue;
|
continue;
|
||||||
chpid.id = num;
|
chpid.id = num;
|
||||||
printk(KERN_WARNING "cio: processing configure event %d for "
|
pr_notice("Processing %s for channel path %x.%02x\n",
|
||||||
"chpid %x.%02x\n", data->op, chpid.cssid, chpid.id);
|
events[data->op], chpid.cssid, chpid.id);
|
||||||
switch (data->op) {
|
switch (data->op) {
|
||||||
case 0:
|
case 0:
|
||||||
chp_cfg_schedule(chpid, 1);
|
chp_cfg_schedule(chpid, 1);
|
||||||
|
@@ -9,6 +9,9 @@
|
|||||||
* Martin Schwidefsky (schwidefsky@de.ibm.com)
|
* Martin Schwidefsky (schwidefsky@de.ibm.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define KMSG_COMPONENT "cio"
|
||||||
|
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
@@ -814,7 +817,7 @@ cio_probe_console(void)
|
|||||||
sch_no = cio_get_console_sch_no();
|
sch_no = cio_get_console_sch_no();
|
||||||
if (sch_no == -1) {
|
if (sch_no == -1) {
|
||||||
console_subchannel_in_use = 0;
|
console_subchannel_in_use = 0;
|
||||||
printk(KERN_WARNING "cio: No ccw console found!\n");
|
pr_warning("No CCW console was found\n");
|
||||||
return ERR_PTR(-ENODEV);
|
return ERR_PTR(-ENODEV);
|
||||||
}
|
}
|
||||||
memset(&console_subchannel, 0, sizeof(struct subchannel));
|
memset(&console_subchannel, 0, sizeof(struct subchannel));
|
||||||
|
@@ -25,6 +25,9 @@
|
|||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define KMSG_COMPONENT "cio"
|
||||||
|
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||||
|
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
@@ -1322,9 +1325,8 @@ static int __init init_cmf(void)
|
|||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
pr_info("Channel measurement facility initialized using format "
|
||||||
printk(KERN_INFO "cio: Channel measurement facility using %s "
|
"%s (mode %s)\n", format_string, detect_string);
|
||||||
"format (%s)\n", format_string, detect_string);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,6 +6,10 @@
|
|||||||
* Author(s): Arnd Bergmann (arndb@de.ibm.com)
|
* Author(s): Arnd Bergmann (arndb@de.ibm.com)
|
||||||
* Cornelia Huck (cornelia.huck@de.ibm.com)
|
* Cornelia Huck (cornelia.huck@de.ibm.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define KMSG_COMPONENT "cio"
|
||||||
|
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
@@ -844,8 +848,8 @@ out:
|
|||||||
s390_unregister_crw_handler(CRW_RSC_CSS);
|
s390_unregister_crw_handler(CRW_RSC_CSS);
|
||||||
chsc_free_sei_area();
|
chsc_free_sei_area();
|
||||||
kfree(slow_subchannel_set);
|
kfree(slow_subchannel_set);
|
||||||
printk(KERN_WARNING"cio: failed to initialize css driver (%d)!\n",
|
pr_alert("The CSS device driver initialization failed with "
|
||||||
ret);
|
"errno=%d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user