diff options
author | markj <markj@FreeBSD.org> | 2014-07-29 21:21:16 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-07-29 21:21:16 +0000 |
commit | c7af226b377c46fa9ad3d6547602504907892763 (patch) | |
tree | 7004c08e1b375b219b328158938675a50a3b73c0 /cddl/contrib/opensolaris/lib/libdtrace | |
parent | cf4dd8790baa7beadeb1e07b7478a5e702a52c16 (diff) | |
download | FreeBSD-src-c7af226b377c46fa9ad3d6547602504907892763.zip FreeBSD-src-c7af226b377c46fa9ad3d6547602504907892763.tar.gz |
MFC r264486:
Use the correct format specifiers for wide characters and strings of wide
characters.
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c index 9d4403c..eeb8735 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c @@ -694,8 +694,13 @@ static const dt_pfconv_t _dtrace_conversions[] = { { "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 }, |