diff options
-rw-r--r-- | gnu/usr.bin/binutils/gas/config/tc-alpha.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gas/config/tc-i960.c | 8 | ||||
-rw-r--r-- | usr.bin/vmstat/dkstats.c | 4 | ||||
-rw-r--r-- | usr.sbin/rbootd/rbootd.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/gas/config/tc-alpha.c b/gnu/usr.bin/binutils/gas/config/tc-alpha.c index 61dba4b8a4f..5f026078e34 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-alpha.c +++ b/gnu/usr.bin/binutils/gas/config/tc-alpha.c @@ -2349,7 +2349,7 @@ insert_operand(insn, operand, val, file, line) insn = (*operand->insert) (insn, val, &errmsg); if (errmsg) - as_warn (errmsg); + as_warn ("%s", errmsg); } else insn |= ((val & ((1 << operand->bits) - 1)) << operand->shift); diff --git a/gnu/usr.bin/binutils/gas/config/tc-i960.c b/gnu/usr.bin/binutils/gas/config/tc-i960.c index d8c15c09911..13cedc175ae 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-i960.c +++ b/gnu/usr.bin/binutils/gas/config/tc-i960.c @@ -661,7 +661,7 @@ md_assemble (textP) case REG: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } reg_fmt (args, oP); break; @@ -670,7 +670,7 @@ md_assemble (textP) { if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } mem_fmt (args, oP, 1); break; @@ -682,14 +682,14 @@ md_assemble (textP) case MEM16: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } mem_fmt (args, oP, 0); break; case CALLJ: if (branch_predict) { - as_warn (bp_error_msg); + as_warn ("%s", bp_error_msg); } /* Output opcode & set up "fixup" (relocation); flag relocation as 'callj' type. */ diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c index 44f22330101..7fda60a83a1 100644 --- a/usr.bin/vmstat/dkstats.c +++ b/usr.bin/vmstat/dkstats.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkstats.c,v 1.7 2000/06/30 16:00:22 millert Exp $ */ +/* $OpenBSD: dkstats.c,v 1.8 2000/10/03 03:12:16 aaron Exp $ */ /* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */ /* @@ -83,7 +83,7 @@ int *dk_select; char **dr_name; #define KVM_ERROR(_string) { \ - warnx((_string)); \ + warnx("%s", (_string)); \ errx(1, "%s", kvm_geterr(kd)); \ } diff --git a/usr.sbin/rbootd/rbootd.c b/usr.sbin/rbootd/rbootd.c index 8d820a73682..e78d59846ac 100644 --- a/usr.sbin/rbootd/rbootd.c +++ b/usr.sbin/rbootd/rbootd.c @@ -152,7 +152,7 @@ main(argc, argv) if ((IntfName = BpfGetIntfName(&errmsg)) == NULL) { syslog(LOG_NOTICE, "restarted (??)"); /* BpfGetIntfName() returns safe names, using %m */ - syslog(LOG_ERR, errmsg); + syslog(LOG_ERR, "%s", errmsg); Exit(0); } } |