summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-10-06 17:21:19 +0000
committerjhb <jhb@FreeBSD.org>2016-10-06 17:21:19 +0000
commitea532c54dfec5c3d45939bf9687342cf76d5f18e (patch)
tree22d0045d5213ec13c71bb501b94b69c92cad0696 /sys/net
parent22006077c2446ea98e0602f970cb428bb25acbd5 (diff)
downloadFreeBSD-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/net')
-rw-r--r--sys/net/iflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 0d54f2c..5938aca 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -1216,7 +1216,7 @@ _iflib_irq_alloc(if_ctx_t ctx, if_irq_t irq, int rid,
rid, name ? name : "unknown", rc);
return (rc);
} else if (name)
- bus_describe_intr(dev, res, tag, name);
+ bus_describe_intr(dev, res, tag, "%s", name);
irq->ii_tag = tag;
return (0);
OpenPOWER on IntegriCloud