diff options
author | jhb <jhb@FreeBSD.org> | 2016-10-06 17:21:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-10-06 17:21:19 +0000 |
commit | ea532c54dfec5c3d45939bf9687342cf76d5f18e (patch) | |
tree | 22d0045d5213ec13c71bb501b94b69c92cad0696 /sys/sys/bus.h | |
parent | 22006077c2446ea98e0602f970cb428bb25acbd5 (diff) | |
download | FreeBSD-src-ea532c54dfec5c3d45939bf9687342cf76d5f18e.zip FreeBSD-src-ea532c54dfec5c3d45939bf9687342cf76d5f18e.tar.gz |
MFC 303754: 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.
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r-- | sys/sys/bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h index e6091a5..30a5333 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -538,7 +538,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, |