summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-08-15 00:20:39 +0000
committerderaadt <deraadt@openbsd.org>2017-08-15 00:20:39 +0000
commitf9216cc10dc8f843d6c4ab10303c8b09df39e3fc (patch)
tree7a081d979a791272655c1e5c44d40b24b4eddad6 /lib/libc/stdio/vfwprintf.c
parentmsdofs: Add new CLUST_END constant (diff)
downloadwireguard-openbsd-f9216cc10dc8f843d6c4ab10303c8b09df39e3fc.tar.xz
wireguard-openbsd-f9216cc10dc8f843d6c4ab10303c8b09df39e3fc.zip
fmt0 is a wchar_t *, so use %ls to report
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
-rw-r--r--lib/libc/stdio/vfwprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c
index f59a4d545db..6ee36fa4726 100644
--- a/lib/libc/stdio/vfwprintf.c
+++ b/lib/libc/stdio/vfwprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfwprintf.c,v 1.17 2016/08/17 22:15:08 tedu Exp $ */
+/* $OpenBSD: vfwprintf.c,v 1.18 2017/08/15 00:20:39 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -822,7 +822,7 @@ fp_common:
int save_errno = errno;
syslog_r(LOG_CRIT | LOG_CONS, &sdata,
- "vfwprintf %%ls NULL in \"%s\"", fmt0);
+ "vfwprintf %%ls NULL in \"%ls\"", fmt0);
errno = save_errno;
cp = L"(null)";
@@ -834,7 +834,7 @@ fp_common:
int save_errno = errno;
syslog_r(LOG_CRIT | LOG_CONS, &sdata,
- "vfwprintf %%s NULL in \"%s\"", fmt0);
+ "vfwprintf %%s NULL in \"%ls\"", fmt0);
errno = save_errno;
mbsarg = "(null)";