aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-01-18 10:11:29 -0500
committerChristoph Hellwig <hch@lst.de>2015-01-20 13:43:22 -0500
commit6a806cbc1525e6f95e22173d9f54a7b75a2bb973 (patch)
tree5d3ece3c2263d20c0e2fbfe5aa5c16d2709d202e /include
parenta13b0c9d09157e331b31e25c1ea19216b837a619 (diff)
scsi: annotate sdev_prefix_printk and scmd_printk as printf-like
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: James Bottomley <JBottomley@Parallels.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/scsi_device.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index d1aad4d04334..2e0281ee719c 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -237,14 +237,15 @@ struct scsi_dh_data {
237 * like scmd_printk, but the device name is passed in 237 * like scmd_printk, but the device name is passed in
238 * as a string pointer 238 * as a string pointer
239 */ 239 */
240extern int sdev_prefix_printk(const char *, const struct scsi_device *, 240__printf(4, 5) int
241 const char *, const char *, ...); 241sdev_prefix_printk(const char *, const struct scsi_device *, const char *,
242 const char *, ...);
242 243
243#define sdev_printk(l, sdev, fmt, a...) \ 244#define sdev_printk(l, sdev, fmt, a...) \
244 sdev_prefix_printk(l, sdev, NULL, fmt, ##a) 245 sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
245 246
246extern int scmd_printk(const char *, const struct scsi_cmnd *, 247__printf(3, 4) int
247 const char *, ...); 248scmd_printk(const char *, const struct scsi_cmnd *, const char *, ...);
248 249
249#define scmd_dbg(scmd, fmt, a...) \ 250#define scmd_dbg(scmd, fmt, a...) \
250 do { \ 251 do { \