svn commit: r269262 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

Mark Johnston markj at FreeBSD.org
Tue Jul 29 21:21:15 UTC 2014


Author: markj
Date: Tue Jul 29 21:21:15 2014
New Revision: 269262
URL: http://svnweb.freebsd.org/changeset/base/269262

Log:
  MFC r264486:
  Use the correct format specifiers for wide characters and strings of wide
  characters.

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c	Tue Jul 29 21:16:35 2014	(r269261)
+++ stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c	Tue Jul 29 21:21:15 2014	(r269262)
@@ -694,8 +694,13 @@ static const dt_pfconv_t _dtrace_convers
 { "S", "s", pfproto_cstr, pfcheck_str, pfprint_estr },
 { "T", "s", "int64_t", pfcheck_time, pfprint_time822 },
 { "u", "u", pfproto_xint, pfcheck_xint, pfprint_uint },
+#if defined(sun)
 { "wc",	"wc", "int", pfcheck_type, pfprint_sint }, /* a.k.a. wchar_t */
 { "ws", "ws", pfproto_wstr, pfcheck_wstr, pfprint_wstr },
+#else
+{ "wc", "lc", "int", pfcheck_type, pfprint_sint }, /* a.k.a. wchar_t */
+{ "ws", "ls", pfproto_wstr, pfcheck_wstr, pfprint_wstr },
+#endif
 { "x", "x", pfproto_xint, pfcheck_xint, pfprint_uint },
 { "X", "X", pfproto_xint, pfcheck_xint, pfprint_uint },
 { "Y", "s", "int64_t", pfcheck_time, pfprint_time },


More information about the svn-src-stable-9 mailing list