aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/esas2r/esas2r_ioctl.c
diff options
context:
space:
mode:
authorEmese Revfy <re.emese@gmail.com>2017-01-03 16:01:40 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-01-09 23:52:26 -0500
commitb6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6 (patch)
tree759778d7cbb1825e889684e6f628723d8e973dce /drivers/scsi/esas2r/esas2r_ioctl.c
parentscsi: pmcraid: switch to pci_alloc_irq_vectors (diff)
downloadlinux-dev-b6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6.tar.xz
linux-dev-b6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6.zip
scsi: esas2r: Fix format string type mistakes
This adds the missing __printf attribute which allows compile time format string checking (and will be used by the coming initify gcc plugin). Additionally, this fixes the warnings exposed by the attribute. Signed-off-by: Emese Revfy <re.emese@gmail.com> [kees: split scsi/acpi, merged attr and fix, new commit messages] Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_ioctl.c')
-rw-r--r--drivers/scsi/esas2r/esas2r_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c b/drivers/scsi/esas2r/esas2r_ioctl.c
index 3e8483410f61..b35ed3829421 100644
--- a/drivers/scsi/esas2r/esas2r_ioctl.c
+++ b/drivers/scsi/esas2r/esas2r_ioctl.c
@@ -1301,7 +1301,7 @@ int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg)
ioctl = kzalloc(sizeof(struct atto_express_ioctl), GFP_KERNEL);
if (ioctl == NULL) {
esas2r_log(ESAS2R_LOG_WARN,
- "ioctl_handler kzalloc failed for %d bytes",
+ "ioctl_handler kzalloc failed for %zu bytes",
sizeof(struct atto_express_ioctl));
return -ENOMEM;
}