scsi: esas2r: Fix format string type mistakes
authorEmese Revfy <re.emese@gmail.com>
Wed, 4 Jan 2017 00:01:40 +0000 (16:01 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Jan 2017 04:52:26 +0000 (23:52 -0500)
commitb6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6
tree759778d7cbb1825e889684e6f628723d8e973dce
parenteab5c1503b604216e352151618cd78d5806dee1a
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>
drivers/scsi/esas2r/esas2r_init.c
drivers/scsi/esas2r/esas2r_ioctl.c
drivers/scsi/esas2r/esas2r_log.h
drivers/scsi/esas2r/esas2r_main.c