Merge branch 'core-objtool-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / drivers / acpi / pci_root.c
index d1e666ef3fcc886eb48772419aa891b78b039bc6..f92df2533e7ec8331dc7875efccdd9bef00b3a9f 100644 (file)
@@ -153,7 +153,7 @@ static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word,
        buf[0] = '\0';
        for (i = 0, entry = table; i < size; i++, entry++)
                if (word & entry->bit)
-                       len += snprintf(buf + len, sizeof(buf) - len, "%s%s",
+                       len += scnprintf(buf + len, sizeof(buf) - len, "%s%s",
                                        len ? " " : "", entry->desc);
 
        dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf);