diff options
author | Joe Perches <joe@perches.com> | 2011-11-18 12:03:06 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-15 01:55:02 -0500 |
commit | d8424f68c0160c45c446e56cb586fd8b9c538a1a (patch) | |
tree | 060328584036c01127be743b5a54393b1c62f9e5 /drivers/scsi/qla2xxx/qla_dbg.h | |
parent | 086b3e8a399ecd089534280597cfba45b2b55887 (diff) |
[SCSI] qla2xxx: Make the logging functions verify their arguments and fixed the current broken uses as appropriate.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h index 06928141cf64..29a7822848ae 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.h +++ b/drivers/scsi/qla2xxx/qla_dbg.h | |||
@@ -244,14 +244,14 @@ struct qla2xxx_fw_dump { | |||
244 | 244 | ||
245 | extern int ql_errlev; | 245 | extern int ql_errlev; |
246 | 246 | ||
247 | void | 247 | void __attribute__((format (printf, 4, 5))) |
248 | ql_dbg(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...); | 248 | ql_dbg(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...); |
249 | void | 249 | void __attribute__((format (printf, 4, 5))) |
250 | ql_dbg_pci(uint32_t, struct pci_dev *pdev, int32_t, const char *fmt, ...); | 250 | ql_dbg_pci(uint32_t, struct pci_dev *pdev, int32_t, const char *fmt, ...); |
251 | 251 | ||
252 | void | 252 | void __attribute__((format (printf, 4, 5))) |
253 | ql_log(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...); | 253 | ql_log(uint32_t, scsi_qla_host_t *vha, int32_t, const char *fmt, ...); |
254 | void | 254 | void __attribute__((format (printf, 4, 5))) |
255 | ql_log_pci(uint32_t, struct pci_dev *pdev, int32_t, const char *fmt, ...); | 255 | ql_log_pci(uint32_t, struct pci_dev *pdev, int32_t, const char *fmt, ...); |
256 | 256 | ||
257 | /* Debug Levels */ | 257 | /* Debug Levels */ |