aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-08-04 18:29:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-08-04 18:29:16 +0000
commitf454e7ebf521abbc95a486aa33692e351cddedd2 (patch)
treea9e5ad2fb1588fe12d42ea082c15c39a145c09b5 /sys/sys/bus.h
parentad1d96ca7ad2244a7b5d62d9bfad9c1d8f057efa (diff)
downloadsrc-f454e7ebf521abbc95a486aa33692e351cddedd2.tar.gz
src-f454e7ebf521abbc95a486aa33692e351cddedd2.zip
Add __printflike() to bus_describe_intr() to enable -Wformat checks.
Fix a few places that were passing a raw string as the format to use a "%s" format string instead. MFC after: 2 months
Notes
Notes: svn path=/head/; revision=303754
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 1d5f683824a8..b559be75f845 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -534,7 +534,7 @@ int bus_setup_intr(device_t dev, struct resource *r, int flags,
int bus_teardown_intr(device_t dev, struct resource *r, void *cookie);
int bus_bind_intr(device_t dev, struct resource *r, int cpu);
int bus_describe_intr(device_t dev, struct resource *irq, void *cookie,
- const char *fmt, ...);
+ const char *fmt, ...) __printflike(4, 5);
int bus_set_resource(device_t dev, int type, int rid,
rman_res_t start, rman_res_t count);
int bus_get_resource(device_t dev, int type, int rid,