diff options
author | Emese Revfy | 2017-01-04 01:01:40 +0100 |
---|---|---|
committer | Martin K. Petersen | 2017-01-10 05:52:26 +0100 |
commit | b6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6 (patch) | |
tree | 759778d7cbb1825e889684e6f628723d8e973dce /drivers/scsi/esas2r/esas2r_log.h | |
parent | scsi: pmcraid: switch to pci_alloc_irq_vectors (diff) | |
download | kernel-qcow2-linux-b6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6.tar.gz kernel-qcow2-linux-b6f0ec3621d73bc2976a4f2ee2bf9d02ecfd16b6.tar.xz kernel-qcow2-linux-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_log.h')
-rw-r--r-- | drivers/scsi/esas2r/esas2r_log.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/esas2r/esas2r_log.h b/drivers/scsi/esas2r/esas2r_log.h index 7b6397bb5b94..75b9d23cd736 100644 --- a/drivers/scsi/esas2r/esas2r_log.h +++ b/drivers/scsi/esas2r/esas2r_log.h @@ -61,8 +61,8 @@ enum { #endif }; -int esas2r_log(const long level, const char *format, ...); -int esas2r_log_dev(const long level, +__printf(2, 3) int esas2r_log(const long level, const char *format, ...); +__printf(3, 4) int esas2r_log_dev(const long level, const struct device *dev, const char *format, ...); |