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/x86/iommu | |
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/x86/iommu')
-rw-r--r-- | sys/x86/iommu/intel_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/iommu/intel_drv.c b/sys/x86/iommu/intel_drv.c index e5d7783..5f7043b 100644 --- a/sys/x86/iommu/intel_drv.c +++ b/sys/x86/iommu/intel_drv.c @@ -306,7 +306,7 @@ dmar_alloc_irq(device_t dev, struct dmar_unit *unit, int idx) dmd->name, error); goto err4; } - bus_describe_intr(dev, dmd->irq_res, dmd->intr_handle, dmd->name); + bus_describe_intr(dev, dmd->irq_res, dmd->intr_handle, "%s", dmd->name); error = PCIB_MAP_MSI(pcib, dev, dmd->irq, &msi_addr, &msi_data); if (error != 0) { device_printf(dev, "cannot map %s interrupt, %d\n", |