From ea532c54dfec5c3d45939bf9687342cf76d5f18e Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 6 Oct 2016 17:21:19 +0000 Subject: 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. --- sys/net/iflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') 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); -- cgit v1.1