summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/acpi/dsdt.c6
-rw-r--r--sys/kern/subr_autoconf.c4
-rw-r--r--sys/kern/subr_userconf.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index 097131f7831..d9d764c6274 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.204 2013/11/04 22:32:31 kettenis Exp $ */
+/* $OpenBSD: dsdt.c,v 1.205 2013/12/12 20:56:01 guenther Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -3002,11 +3002,11 @@ aml_disasm(struct aml_scope *scope, int lvl,
case 'N':
/* Create Name */
rv = aml_parsesimple(scope, c, NULL);
- dbprintf(arg,aml_nodename(rv->node));
+ dbprintf(arg, "%s", aml_nodename(rv->node));
break;
case 'm':
/* display mnemonic */
- dbprintf(arg,htab->mnem);
+ dbprintf(arg, "%s", htab->mnem);
break;
case 'R':
/* Search name */
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 7696b15693b..63909888184 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.72 2013/12/06 21:03:02 deraadt Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.73 2013/12/12 20:56:01 guenther Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -307,7 +307,7 @@ config_found_sm(struct device *parent, void *aux, cfprint_t print,
if ((match = config_search(submatch, parent, aux)) != NULL)
return (config_attach(parent, match, aux, print));
if (print)
- printf(msgs[(*print)(aux, parent->dv_xname)]);
+ printf("%s", msgs[(*print)(aux, parent->dv_xname)]);
return (NULL);
}
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index cf2919d5815..aa405b6aec4 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.37 2011/06/01 04:35:22 matthew Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.38 2013/12/12 20:56:01 guenther Exp $ */
/*
* Copyright (c) 1996-2001 Mats O Jansson <moj@stacken.kth.se>
@@ -685,7 +685,7 @@ userconf_help(void)
printf("command args description\n");
while (*userconf_cmds[j] != '\0') {
- printf(userconf_cmds[j]);
+ printf("%s", userconf_cmds[j]);
k = strlen(userconf_cmds[j]);
while (k < 10) {
printf(" ");