diff mbox series

scsi: esas2r: Replace kzalloc with kmalloc in the log message

Message ID 1590714163-15966-1-git-send-email-wang.yi59@zte.com.cn (mailing list archive)
State Deferred
Headers show
Series scsi: esas2r: Replace kzalloc with kmalloc in the log message | expand

Commit Message

Yi Wang May 29, 2020, 1:02 a.m. UTC
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 mbox series

Patch

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;
 		}
 	}