* [PATCH] scsi: esas2r: Replace kzalloc with kmalloc in the log message
@ 2020-05-29 1:02 Yi Wang
0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2020-05-29 1:02 UTC (permalink / raw)
To: linuxdrivers
Cc: jejb, martin.petersen, linux-scsi, linux-kernel, xue.zhihong,
wang.yi59, wang.liang82, Liao Pingfang
From: Liao Pingfang <liao.pingfang@zte.com.cn>
Use kmalloc instead of kzalloc in the log message according to
the previous kmalloc() call.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
---
drivers/scsi/esas2r/esas2r_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c
index 7b49e2e..2cdc4ea 100644
--- a/drivers/scsi/esas2r/esas2r_main.c
+++ b/drivers/scsi/esas2r/esas2r_main.c
@@ -198,8 +198,8 @@ static ssize_t write_hw(struct file *file, struct kobject *kobj,
GFP_KERNEL);
if (a->local_atto_ioctl == NULL) {
esas2r_log(ESAS2R_LOG_WARN,
- "write_hw kzalloc failed for %zu bytes",
- sizeof(struct atto_ioctl));
+ "%s kmalloc failed for %zu bytes",
+ __func__, sizeof(struct atto_ioctl));
return -ENOMEM;
}
}
--
2.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-29 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 1:02 [PATCH] scsi: esas2r: Replace kzalloc with kmalloc in the log message Yi Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).