summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-13 10:42:49 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-06-13 20:18:49 +0200
commitfd16d263194aa6b50b215eb593a567b59d744d6e (patch)
tree555aac4bd0104ea85643f1a3550c9bc1cbac9256 /include
parentdd7740933842202fccaa9ebcba6bce0507b3f6d6 (diff)
downloadlinux-fd16d263194aa6b50b215eb593a567b59d744d6e.tar.gz
linux-fd16d263194aa6b50b215eb593a567b59d744d6e.tar.bz2
linux-fd16d263194aa6b50b215eb593a567b59d744d6e.zip
block: Add __attribute__((format(printf...) and fix fallout
Use the compiler to verify format strings and arguments. Fix fallout. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blktrace_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index b22fb0d3db0f..8c7c2de7631a 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -169,7 +169,8 @@ extern void blk_trace_shutdown(struct request_queue *);
extern int do_blk_trace_setup(struct request_queue *q, char *name,
dev_t dev, struct block_device *bdev,
struct blk_user_trace_setup *buts);
-extern void __trace_note_message(struct blk_trace *, const char *fmt, ...);
+extern __attribute__((format(printf, 2, 3)))
+void __trace_note_message(struct blk_trace *, const char *fmt, ...);
/**
* blk_add_trace_msg - Add a (simple) message to the blktrace stream