diff options
author | Julian Wiedmann | 2021-07-12 09:39:57 +0200 |
---|---|---|
committer | Vasily Gorbik | 2021-08-18 10:01:28 +0200 |
commit | f86991b3a95ab245510ccd111926d1f40ae13b91 (patch) | |
tree | a10be26a654875749898ce39a91055f1d5543390 /drivers/s390/cio | |
parent | 87e225bfa0015aee2812246de56a09126a743192 (diff) |
s390/qdio: use dev_info() in qdio_print_subchannel_info()
Prefer dev_info() over a raw printk. This also adds the device and
driver names into the output, so that we have:
Before:
qdio: 0.0.17c0 ZFCP on SC 17 using [...]
After:
zfcp 0.0.17c0: qdio: ZFCP on SC 17 using [...]
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/qdio_setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/cio/qdio_setup.c b/drivers/s390/cio/qdio_setup.c index ebefe8279d16..8a3c260ebc0d 100644 --- a/drivers/s390/cio/qdio_setup.c +++ b/drivers/s390/cio/qdio_setup.c @@ -479,10 +479,8 @@ void qdio_shutdown_irq(struct qdio_irq *irq) void qdio_print_subchannel_info(struct qdio_irq *irq_ptr) { - char s[80]; - - snprintf(s, 80, "qdio: %s %s on SC %x using AI:%d QEBSM:%d PRI:%d TDD:%d SIGA:%s%s%s\n", - dev_name(&irq_ptr->cdev->dev), + dev_info(&irq_ptr->cdev->dev, + "qdio: %s on SC %x using AI:%d QEBSM:%d PRI:%d TDD:%d SIGA:%s%s%s\n", (irq_ptr->qib.qfmt == QDIO_QETH_QFMT) ? "OSA" : ((irq_ptr->qib.qfmt == QDIO_ZFCP_QFMT) ? "ZFCP" : "HS"), irq_ptr->schid.sch_no, @@ -493,7 +491,6 @@ void qdio_print_subchannel_info(struct qdio_irq *irq_ptr) qdio_need_siga_in(irq_ptr) ? "R" : " ", qdio_need_siga_out(irq_ptr) ? "W" : " ", qdio_need_siga_sync(irq_ptr) ? "S" : " "); - printk(KERN_INFO "%s", s); } int __init qdio_setup_init(void) |